Mercurial > libervia-web
comparison libervia.tac @ 295:33e0eb212b14
server side: adapted registeringError reasons to new names in backend
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 17 Dec 2013 01:34:56 +0100 |
parents | ae3ec654836d |
children | 92d76ab67156 |
comparison
equal
deleted
inserted
replaced
294:a6b3715f0bd6 | 295:33e0eb212b14 |
---|---|
642 request.write('REGISTRATION') | 642 request.write('REGISTRATION') |
643 request.finish() | 643 request.finish() |
644 | 644 |
645 def registeringError(failure): | 645 def registeringError(failure): |
646 reason = str(failure.value) | 646 reason = str(failure.value) |
647 if reason == "CONFLICT": | 647 if reason == "ConflictError": |
648 request.write('ALREADY EXISTS') | 648 request.write('ALREADY EXISTS') |
649 elif reason == "INTERNAL": | 649 elif reason == "InternalError": |
650 request.write('INTERNAL') | 650 request.write('INTERNAL') |
651 else: | 651 else: |
652 #import pdb | |
653 #pdb.set_trace() | |
654 | |
655 error('Unknown registering error: %s' % (reason,)) | 652 error('Unknown registering error: %s' % (reason,)) |
656 request.write('Unknown error (%s)' % reason) | 653 request.write('Unknown error (%s)' % reason) |
657 request.finish() | 654 request.finish() |
658 | 655 |
659 d = self.asyncBridgeCall("registerSatAccount", email, password, profile) | 656 d = self.asyncBridgeCall("registerSatAccount", email, password, profile) |