Mercurial > libervia-web
comparison libervia_server/__init__.py @ 435:e63fc04efef7
server_side: remove unused method _postAccountCreation
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 06 May 2014 18:06:38 +0200 |
parents | bbdbee25123a |
children | 582c435dab6b |
comparison
equal
deleted
inserted
replaced
434:d64b415c58ca | 435:e63fc04efef7 |
---|---|
638 | 638 |
639 d = self.asyncBridgeCall("asyncGetParamA", "Password", "Connection", profile_key=_login) | 639 d = self.asyncBridgeCall("asyncGetParamA", "Password", "Connection", profile_key=_login) |
640 d.addCallbacks(profile_pass_cb, profile_pass_errback) | 640 d.addCallbacks(profile_pass_cb, profile_pass_errback) |
641 | 641 |
642 return server.NOT_DONE_YET | 642 return server.NOT_DONE_YET |
643 | |
644 def _postAccountCreation(self, answer_type, id, data, profile): | |
645 """Called when a account has just been created, | |
646 setup stuff has microblog access""" | |
647 def _connected(ignore): | |
648 mblog_d = self.asyncBridgeCall("setMicroblogAccess", "open", profile) | |
649 mblog_d.addBoth(lambda ignore: self.sat_host.bridge.disconnect(profile)) | |
650 | |
651 d = self.asyncBridgeCall("asyncConnect", profile) | |
652 d.addCallback(_connected) | |
653 | 643 |
654 def _registerNewAccount(self, request): | 644 def _registerNewAccount(self, request): |
655 """Create a new account, or return error | 645 """Create a new account, or return error |
656 @param request: initial login request | 646 @param request: initial login request |
657 @return: "REGISTRATION" in case of success""" | 647 @return: "REGISTRATION" in case of success""" |