def POST(self, mailbox): x = web.input() print x, web.ctx.session mailbox = x['mailbox'] domain = mailbox.split('@')[-1] d = None try: d = db_api.domain_get_by_name(domain) except Exception, e: return Exception(e)
def GET(self, domain): if domain is None: raise Exception('xx domain') domain = db_api.domain_get_by_name(domain) return render.domain_info(domain=domain)