def add_domain(self, x): domain = x['domain'] d = db_api.domain_create(domain, web.ctx.session.id) return d
def POST(self, domain): x = web.input() print x, web.ctx.session d = db_api.domain_create(x['domain'], web.ctx.session.id) print dir(d), d.mailbox return 'SUCC'