示例#1
0
文件: main.py 项目: zz2/betasend
 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)
示例#2
0
文件: main.py 项目: zz2/betasend
 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)