X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/410bfa05ee36ed1d99356c443a5f3f6aa3ee9578..c8c6b98a7b2a365878871131e0f42c40d6b499fc:/forum/authentication/__init__.py diff --git a/forum/authentication/__init__.py b/forum/authentication/__init__.py index 08ea03f..8dbf825 100644 --- a/forum/authentication/__init__.py +++ b/forum/authentication/__init__.py @@ -31,27 +31,3 @@ AUTH_PROVIDERS = dict([ if name in contexts ]) - -#todo: probably this don't belong here, also this post_stored routine needs a lot of work -user_logged_in = django.dispatch.Signal(providing_args=["user", "old_session"]) - -#def post_stored_anonymous_content(user,old_session,**kwargs): -# from forum.models import AnonymousQuestion, AnonymousAnswer -# aq_list = AnonymousQuestion.objects.filter(session_key = old_session) -# aa_list = AnonymousAnswer.objects.filter(session_key = old_session) -# import settings -# if settings.EMAIL_VALIDATION == 'on':#add user to the record -# for aq in aq_list: -# aq.author = user -# aq.save() -# for aa in aa_list: -# aa.author = user -# aa.save() -# #maybe add pending posts message? -# else: #just publish the questions -# for aq in aq_list: -# aq.publish(user) -# for aa in aa_list: -# aa.publish(user) -# -#user_logged_in.connect(post_stored_anonymous_content) \ No newline at end of file