예제 #1
0
    def ready(self):
        from froide.account import account_merged
        from froide.helper.search import search_registry
        from . import listeners  # noqa

        account_merged.connect(merge_user)
        search_registry.register(add_search)
예제 #2
0
파일: apps.py 프로젝트: manonthemat/froide
    def ready(self):
        from froide.account import account_merged
        from froide.account.export import registry
        from froide.helper.search import search_registry
        from .utils import export_user_data

        registry.register(export_user_data)
        account_merged.connect(merge_user)
        search_registry.register(add_search)
예제 #3
0
    def ready(self):
        from froide.account import account_canceled, account_merged
        from froide.account.export import registry
        from froide.helper.search import search_registry
        import froide.foirequest.signals  # noqa
        from .utils import cancel_user, merge_user, export_user_data

        account_canceled.connect(cancel_user)
        account_merged.connect(merge_user)
        registry.register(export_user_data)
        search_registry.register(add_search)
예제 #4
0
파일: apps.py 프로젝트: stefanw/froide
    def ready(self):
        from froide.account import (
            account_canceled, account_merged, account_made_private
        )
        from froide.account.export import registry
        from froide.helper.search import search_registry
        import froide.foirequest.signals  # noqa
        from .utils import (
            cancel_user, merge_user, export_user_data, make_account_private
        )

        account_canceled.connect(cancel_user)
        account_merged.connect(merge_user)
        account_made_private.connect(make_account_private)
        registry.register(export_user_data)
        search_registry.register(add_search)
예제 #5
0
    def ready(self):
        from froide.account import (account_canceled, account_merged,
                                    account_made_private)
        from froide.account.export import registry
        from froide.helper.search import search_registry
        from django_comments.signals import comment_will_be_posted
        from froide.foirequest import signals  # noqa
        from .utils import (cancel_user, merge_user, export_user_data,
                            make_account_private)

        account_canceled.connect(cancel_user)
        account_merged.connect(merge_user)
        account_made_private.connect(make_account_private)
        registry.register(export_user_data)
        search_registry.register(add_search)
        comment_will_be_posted.connect(signals.pre_comment_foimessage)
예제 #6
0
    def ready(self):
        '''
        Remove when https://github.com/divio/django-filer/issues/1103
        '''
        from filer.fields.file import AdminFileWidget

        AdminFileWidget.Media.js = (
            'admin/js/vendor/jquery/jquery.js',
            'admin/js/jquery.init.js',
        ) + AdminFileWidget.Media.js

        AdminFileWidget.obj_for_value = obj_for_value

        from froide.account import account_merged
        from froide.helper.search import search_registry

        account_merged.connect(merge_user)
        search_registry.register(add_search)
예제 #7
0
    def ready(self):
        '''
        Remove when https://github.com/divio/django-filer/issues/1103
        '''
        from filer.fields.file import AdminFileWidget

        AdminFileWidget.Media.js = (
            'admin/js/vendor/jquery/jquery.js',
            'admin/js/jquery.init.js',
        ) + AdminFileWidget.Media.js

        AdminFileWidget.obj_for_value = obj_for_value

        from froide.account import account_merged
        from froide.helper.search import search_registry

        account_merged.connect(merge_user)
        search_registry.register(add_search)
예제 #8
0
    def ready(self):
        import froide.document.signals  # noqa

        from froide.helper.search import search_registry

        search_registry.register(add_search)