diff options
author | rafael lisboa <rafaelzlisboa@gmail.com> | 2015-06-04 15:14:37 -0300 |
---|---|---|
committer | rafael lisboa <rafaelzlisboa@gmail.com> | 2015-06-04 15:14:37 -0300 |
commit | accf8a1fe1d854417b705f37202bb1fe61cdcbe1 (patch) | |
tree | 536380d3c80c26c97b3dfeed17b3a0c97ecae830 /service/pixelated | |
parent | 00a35b7b5cab34f72f7807b844e00039b8d55e89 (diff) |
remove duplicate nicknym key initialization
Diffstat (limited to 'service/pixelated')
-rw-r--r-- | service/pixelated/config/app_factory.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/service/pixelated/config/app_factory.py b/service/pixelated/config/app_factory.py index 5aa0950b..b803c0d7 100644 --- a/service/pixelated/config/app_factory.py +++ b/service/pixelated/config/app_factory.py @@ -34,7 +34,6 @@ from leap.common.events import ( ) from .welcome_mail import check_welcome_mail -CREATE_KEYS_IF_KEYS_DONT_EXISTS_CALLBACK = 12345 INIT_INDEX_AND_REMOVE_DUPES_CALLBACK = 12346 CHECK_WELCOME_MAIL_CALLBACK = 12347 @@ -71,14 +70,6 @@ def init_leap_session(app, leap_home): return leap_session -def look_for_user_key_and_create_if_cant_find(leap_session): - def wrapper(*args, **kwargs): - leap_session.nicknym.generate_openpgp_key() - unregister(proto.SOLEDAD_DONE_DATA_SYNC, uid=CREATE_KEYS_IF_KEYS_DONT_EXISTS_CALLBACK) - - return wrapper - - def init_app(leap_home, leap_session): leap_session.start_background_jobs() keymanager = leap_session.nicknym.keymanager @@ -109,8 +100,4 @@ def init_app(leap_home, leap_session): uid=CHECK_WELCOME_MAIL_CALLBACK, callback=check_welcome_mail_wrapper(pixelated_mailboxes.inbox())) - register(signal=proto.SOLEDAD_DONE_DATA_SYNC, - uid=CREATE_KEYS_IF_KEYS_DONT_EXISTS_CALLBACK, - callback=look_for_user_key_and_create_if_cant_find(leap_session)) - return resource |