Beispiel #1
0
def register():
    if 'cosinnus_event' in getattr(settings, 'COSINNUS_DISABLED_COSINNUS_APPS',
                                   []):
        return

    # Import here to prevent import side effects
    from django.utils.translation import ugettext_lazy as _
    from django.utils.translation import pgettext_lazy

    from cosinnus.core.registries import (app_registry,
                                          attached_object_registry,
                                          url_registry, widget_registry)

    app_registry.register('cosinnus_event',
                          'event',
                          _('Events'),
                          deactivatable=True)
    attached_object_registry.register(
        'cosinnus_event.Event', 'cosinnus_event.utils.renderer.EventRenderer')
    url_registry.register_urlconf('cosinnus_event', 'cosinnus_event.urls')
    widget_registry.register('event',
                             'cosinnus_event.dashboard.UpcomingEvents')

    # makemessages replacement protection
    name = pgettext_lazy("the_app", "event")
Beispiel #2
0
def register():
    if 'cosinnus_todo' in getattr(settings, 'COSINNUS_DISABLED_COSINNUS_APPS',
                                  []):
        return

    # Import here to prevent import side effects
    from django.utils.translation import ugettext_lazy as _
    from django.utils.translation import pgettext_lazy

    from cosinnus.core.registries import (app_registry,
                                          attached_object_registry,
                                          url_registry, widget_registry)

    active_by_default = "cosinnus_todo" in settings.COSINNUS_DEFAULT_ACTIVE_GROUP_APPS
    app_registry.register('cosinnus_todo',
                          'todo',
                          _('Todos'),
                          deactivatable=True,
                          active_by_default=active_by_default)
    attached_object_registry.register(
        'cosinnus_todo.TodoEntry',
        'cosinnus_todo.utils.renderer.TodoEntryRenderer')
    url_registry.register_urlconf('cosinnus_todo', 'cosinnus_todo.urls')
    widget_registry.register('todo', 'cosinnus_todo.dashboard.MyTodos')

    # makemessages replacement protection
    name = pgettext_lazy("the_app", "todo")

    import cosinnus_todo.hooks
def register():
    if 'cosinnus_etherpad' in getattr(settings,
                                      'COSINNUS_DISABLED_COSINNUS_APPS', []):
        return

    # Import here to prevent import side effects
    from django.utils.translation import ugettext_lazy as _
    from django.utils.translation import pgettext_lazy

    from cosinnus.core.registries import (app_registry,
                                          attached_object_registry,
                                          url_registry, widget_registry)

    active_by_default = "cosinnus_etherpad" in settings.COSINNUS_DEFAULT_ACTIVE_GROUP_APPS
    app_registry.register('cosinnus_etherpad',
                          'etherpad',
                          _('Etherpads'),
                          deactivatable=True,
                          active_by_default=active_by_default)
    attached_object_registry.register(
        'cosinnus_etherpad.Etherpad',
        'cosinnus_etherpad.utils.renderer.EtherpadRenderer')
    attached_object_registry.register(
        'cosinnus_etherpad.Ethercalc',
        'cosinnus_etherpad.utils.renderer.EtherpadRenderer')
    url_registry.register_urlconf('cosinnus_etherpad', 'cosinnus_etherpad.urls', \
                                  url_app_name_override='document')
    widget_registry.register('etherpad', 'cosinnus_etherpad.dashboard.Latest')

    # makemessages replacement protection
    name = pgettext_lazy("the_app", "etherpad")
Beispiel #4
0
def register():
    # Import here to prevent import side effects
    from django.utils.translation import ugettext_lazy as _

    from cosinnus.core.registries import (app_registry, url_registry,
                                          widget_registry)

    from cosinnus_etherpad.urls import (cosinnus_group_patterns,
                                        cosinnus_root_patterns)

    app_registry.register('cosinnus_etherpad', 'etherpad', _('Etherpads'))
    url_registry.register_urlconf('cosinnus_etherpad',
                                  'cosinnus_etherpad.urls')
    widget_registry.register('etherpad', 'cosinnus_etherpad.dashboard.Latest')
Beispiel #5
0
def register():
    # Import here to prevent import side effects
    from django.utils.translation import ugettext_lazy as _

    from cosinnus.core.registries import (app_registry, url_registry,
                                          widget_registry)

    from cosinnus_todo.urls import (cosinnus_group_patterns,
                                    cosinnus_root_patterns)

    app_registry.register('cosinnus_todo', 'todo', _('Todos'))
    url_registry.register('cosinnus_todo', cosinnus_root_patterns,
                          cosinnus_group_patterns)
    widget_registry.register('todo', 'cosinnus_todo.dashboard.MyTodos')
Beispiel #6
0
def register():
    # Import here to prevent import side effects
    from django.utils.translation import ugettext_lazy as _

    from cosinnus.core.registries import (app_registry, url_registry,
                                          widget_registry)

    from cosinnus_note.urls import (cosinnus_group_patterns,
                                    cosinnus_root_patterns)

    app_registry.register('cosinnus_note', 'note', _('Notes'))
    url_registry.register('cosinnus_note', cosinnus_root_patterns,
                          cosinnus_group_patterns)
    for w in (
            'CompactNotes',
            'DetailedNotes',
    ):
        widget_registry.register('note', 'cosinnus_note.dashboard.%s' % w)
def register():
    if 'cosinnus_marketplace' in getattr(settings, 'COSINNUS_DISABLED_COSINNUS_APPS', []):
        return
    
    # Import here to prevent import side effects
    from django.utils.translation import ugettext_lazy as _
    from django.utils.translation import pgettext_lazy

    from cosinnus.core.registries import (app_registry,
        attached_object_registry, url_registry, widget_registry)

    active_by_default = "cosinnus_marketplace" in settings.COSINNUS_DEFAULT_ACTIVE_GROUP_APPS
    app_registry.register('cosinnus_marketplace', 'marketplace', _('Marketplace'), deactivatable=True, active_by_default=active_by_default, activatable_for_groups_only=True)
    attached_object_registry.register('cosinnus_marketplace.Offer',
                             'cosinnus_marketplace.utils.renderer.OfferRenderer')
    url_registry.register_urlconf('cosinnus_marketplace', 'cosinnus_marketplace.urls')
    widget_registry.register('marketplace', 'cosinnus_marketplace.dashboard.CurrentOffers')
    
    # makemessages replacement protection
    name = pgettext_lazy("the_app", "marketplace")
def register():
    if "cosinnus_cloud" in getattr(settings, "COSINNUS_DISABLED_COSINNUS_APPS", []):
        return
    if not getattr(settings, "COSINNUS_CLOUD_ENABLED", False):
        return

    # Import here to prevent import side effects
    from django.utils.translation import ugettext_lazy as _
    from django.utils.translation import pgettext_lazy

    from cosinnus.core.registries import app_registry, url_registry, widget_registry
    
    active_by_default = "cosinnus_cloud" in settings.COSINNUS_DEFAULT_ACTIVE_GROUP_APPS
    app_registry.register("cosinnus_cloud", "cloud", _("Cloud"), deactivatable=True, active_by_default=active_by_default)
    url_registry.register_urlconf("cosinnus_cloud", "cosinnus_cloud.urls")
    widget_registry.register("cloud", 'cosinnus_cloud.dashboard.Latest')

    # makemessages replacement protection
    name = pgettext_lazy("the_app", "cloud")

    import cosinnus_cloud.hooks  # noqa
Beispiel #9
0
def register():
    if 'cosinnus_stream' in getattr(settings,
                                    'COSINNUS_DISABLED_COSINNUS_APPS', []):
        return

    # Import here to prevent import side effects
    from django.utils.translation import ugettext_lazy as _
    from django.utils.translation import pgettext_lazy

    from cosinnus.core.registries import (app_registry,
                                          attached_object_registry,
                                          url_registry, widget_registry)

    app_registry.register('cosinnus_stream', 'stream', _('Stream'))
    #attached_object_registry.register('cosinnus_file.FileEntry',
    #                         'cosinnus_file.utils.renderer.FileEntryRenderer')
    url_registry.register_urlconf('cosinnus_stream', 'cosinnus_stream.urls')
    widget_registry.register('stream',
                             'cosinnus_stream.dashboard.MyStreamsWidget')

    # makemessages replacement protection
    name = pgettext_lazy("the_app", "stream")