Ejemplo n.º 1
0
    def __init__(self, **kwargs):
        Menu.__init__(self, **kwargs)

        app_menu = items.AppList(
                _('Applications'),
                exclude=('django.contrib.*',
                     'fablabadmin.base.models.ContactStatus',
                     'fablabadmin.base.models.ResourceType',
                     'fablabadmin.accounting.models.BankTransaction',
                     'filer*')
            )
        admin_menu = items.AppList(
                _('Administration'),
                models=('django.contrib.*',
                    'fablabadmin.base.models.ContactStatus',
                    'fablabadmin.base.models.ResourceType',
                    'fablabadmin.accounting.models.BankTransaction',
                    'filer*')
            )
        app_menu.children += [items.MenuItem(_('Accounting'), children=[
            items.MenuItem(_('Consolidation'), '/admin/accounting/consolidation')
        ])]

        self.children += [
            items.MenuItem(_('Dashboard'), reverse('admin:index')),
            items.Bookmarks(),
            app_menu,
            admin_menu,
            items.MenuItem(_('report bug / new feature'), 'https://github.com/bfritscher/fablab-admin/issues')

        ]
Ejemplo n.º 2
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_('Dashboard'), reverse('admin:index')),
         items.ModelList(_('Users'), models=self.USERS),
         items.ModelList(_('Structure'),
                         models=('waldur_core.structure.*', )),
         CustomAppList(
             _('Accounting'),
             models=self.ACCOUNTING,
         ),
         CustomAppList(
             _('Providers'),
             models=self.IAAS_CLOUDS,
         ),
         CustomAppList(
             _('Applications'),
             models=self.APPLICATION_PROVIDERS,
         ),
         CustomAppList(
             _('Support'),
             models=self.SUPPORT_MODULES,
         ),
         CustomAppList(_('Utilities'),
                       exclude=(
                           'django.core.*',
                           'django_openid_auth.*',
                           'rest_framework.authtoken.*',
                           'waldur_core.core.*',
                           'waldur_core.structure.*',
                       ) + self.IAAS_CLOUDS + self.APPLICATION_PROVIDERS +
                       self.SUPPORT_MODULES + self.ACCOUNTING + self.USERS),
     ]
Ejemplo n.º 3
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_("Dashboard"), reverse("admin:index")),
         items.Bookmarks(),
         items.AppList(_("Applications")),
     ]
Ejemplo n.º 4
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children.append(items.MenuItem(
         title=_('Dashboard'),
         url=reverse('admin:index')
     ))
     self.children.append(items.AppList(
         title=_('PlaylistNow'),
         include_list=(
             'music',
             'playlist',
         )
     ))
     self.children.append(items.AppList(
         title=_('Applications'),
         exclude_list=(
             'django.contrib', 
             'pinax.apps',
             'music', 
             'playlist',
             'emailconfirmation',
             'mailer',
         )
     ))
     self.children.append(items.AppList(
         title=_('Administration'),
         include_list=(
             'django.contrib',
             'pinax.apps',
             'emailconfirmation',
             'mailer',
         )
     ))
Ejemplo n.º 5
0
    def __init__(self, **kwargs):
        Menu.__init__(self, **kwargs)
        self.children += [
            items.MenuItem(_('Dashboard'), reverse('admin:index')),
        ]

        # Foo
        self.children.append(items.ModelList(_('Foo'), models=conf.foo_apps))

        # Fobi
        self.children.append(
            items.MenuItem(_('Fobi'),
                           children=[
                               items.ModelList(_('Plugins'),
                                               models=conf.fobi_plugins),
                               items.ModelList(_('Forms'),
                                               models=conf.fobi_forms),
                               items.ModelList(_('Data'),
                                               models=conf.fobi_data),
                           ]))

        if 'feincms' in settings.INSTALLED_APPS:
            # FeinCMS pages integration
            self.children.append(
                items.AppList(_('FeinCMS Pages'), models=conf.feincms_pages))

        if 'cms' in settings.INSTALLED_APPS:
            # DjangoCMS pages integration
            self.children.append(
                items.AppList(_('DjangoCMS Pages'),
                              models=conf.djangocms_pages))

        # append an app list module for "Administration"
        self.children.append(
            items.AppList(_('Administration'), models=['django.contrib.*']))
Ejemplo n.º 6
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_("Dashboard"), reverse("admin:index")),
         items.MenuItem(_("Users"), reverse("admin:users_user_changelist")),
         items.MenuItem(_("Containers"),
                        reverse("admin:containers_container_changelist")),
         items.MenuItem(_("Categories"),
                        reverse("admin:categories_category_changelist")),
         items.MenuItem(_("Products"),
                        reverse("admin:products_product_changelist")),
         items.MenuItem(_("Orders"),
                        reverse("admin:orders_order_changelist")),
         items.MenuItem(
             _("Logistics"),
             children=[
                 items.MenuItem(_("Routes"),
                                reverse("admin:routes_route_changelist")),
                 items.MenuItem(_("Jobs"),
                                reverse("admin:jobs_job_changelist")),
                 items.MenuItem(_("Trucks"),
                                reverse("admin:trucks_truck_changelist")),
             ],
         ),
     ]
Ejemplo n.º 7
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_('Dashboard'), reverse('admin:index')),
         items.Bookmarks(),
         items.AppList(_('Administration'),
                       models=(
                           'django.contrib.*',
                           'filer.*',
                       )),
         items.ModelList(
             _('Asset Manager'),
             (
                 'asset_manager.models.Asset',
                 'asset_manager.models.Exchange',
                 'asset_manager.models.Office',
                 'asset_manager.models.Location',
                 'asset_manager.models.Manufacturer',
                 'asset_manager.models.Supplier',
                 'asset_manager.models.Type',
             ),
         ),
         items.ModelList(
             _('License Manager'),
             (
                 'license_manager.models.License',
                 'license_manager.models.LicenseAssignment',
                 'license_manager.models.LicenseSummary',
                 'license_manager.models.Platform',
                 'license_manager.models.SoftwareFamily',
                 'license_manager.models.Software',
                 'license_manager.models.Supplier',
             ),
         ),
     ]
Ejemplo n.º 8
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_('Dashboard'), reverse('admin:index')),
         items.Bookmarks(),
         items.AppList(
             _('Applications'),
             exclude=('django.contrib.*',)
         ),
         items.AppList(
             _('Administration'),
             models=('django.contrib.*',)
         ),
         items.ModelList(_(u'Workflow'), [
             'src.storage.models.Customer',
             'src.storage.models.Project',
             'src.storage.models.Teaser',
             ]),
         items.ModelList(_(u'Reports'), [
             'src.custom_admin.models.ActivityReport',
             'src.custom_admin.models.SalesReport',
             ]),
         items.ModelList(_(u'Finances'), [
             'src.storage.models.FinanceTransaction',
             ]),
         items.ModelList(_(u'Dictionaries'), [
             'src.storage.models.Workarea',
             'src.storage.models.JobType',
             ]),
         items.ModelList(_(u'Static Blocks'), [
             'chunks.models.Chunk',
             'chunks.models.Image',
             'chunks.models.Media',
             ]),
     ]
Ejemplo n.º 9
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(u' ', '/'),
         items.MenuItem(_('Dashboard'), reverse('admin:index')),
         items.Bookmarks(),
         items.AppList(
             _('Content'),
             models=itemlist_content,
         ),
         items.AppList(
             _('Structure'),
             models=itemlist_structure,
         ),
         items.AppList(
             _('Second Life'),
             models=itemlist_sl,
         ),
         items.AppList(
             _('System'),
             models=itemlist_system,
         ),
         items.AppList(
             _('Miscellaneous'),
             exclude=itemlist_misc_exclude,
         ),
     ]
Ejemplo n.º 10
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_('Dashboard'), reverse('admin:index')),
         items.ModelList(_('Users'), models=self.USERS),
         items.ModelList(_('Structure'),
                         models=('waldur_core.structure.*', )),
         CustomAppList(
             _('Accounting'),
             models=self.ACCOUNTING,
         ),
         CustomAppList(
             _('Providers'),
             models=self.IAAS_CLOUDS,
         ),
         CustomAppList(
             _('Applications'),
             models=self.APPLICATION_PROVIDERS,
         ),
         CustomAppList(
             _('Support'),
             models=self.SUPPORT_MODULES,
         ),
         CustomAppList(_('Utilities'),
                       exclude=flatten(
                           self.EXTRA_MODELS,
                           self.IAAS_CLOUDS,
                           self.APPLICATION_PROVIDERS,
                           self.SUPPORT_MODULES,
                           self.ACCOUNTING,
                           self.USERS,
                       )),
     ]
Ejemplo n.º 11
0
    def __init__(self, **kwargs):
        Menu.__init__(self, **kwargs)
        self.children += [
            items.MenuItem(_('Dashboard'), reverse('admin:index')),
            items.AppList(
                _('Applications'),
                exclude=(
                    'django.contrib.*',
                ),
                children=[
#                    items.MenuItem(u'pages', reverse('admin:flatpages_flatpage_changelist')),
#                    items.MenuItem(u'news', reverse('admin:articles_news_changelist')),
#                    items.MenuItem(u'files', reverse('fb_browse')),
                ],
            ),
            items.AppList(
                _('Administration'),
                exclude=(
                    'django.contrib.*',
                    'articles.*',
                    'chunks.*',
                ),
                children=[
                    items.MenuItem(_(u'Users'), reverse('admin:auth_user_changelist')),
                    items.MenuItem(_(u'Groups'), reverse('admin:auth_group_changelist')),
                ]
            ),
        ]
Ejemplo n.º 12
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_('Alarm'), reverse('admin:index')),
         items.AppList(_('Applications'), exclude=('django.contrib.*', )),
         items.AppList(_('Administration'), models=('django.contrib.*', ))
     ]
     self.children.append(
         items.MenuItem(_('Ferramentas'),
                        children=[
                            items.MenuItem('Inserir Recomendador', 'code'),
                            items.MenuItem('Gerenciar Recomendadores',
                                           'managercodes'),
                        ]))
     self.children.append(
         items.MenuItem(
             _('Gráficos'),
             children=[
                 items.MenuItem('Recomendação gerada',
                                'recomendacaoGerada'),
                 items.MenuItem('Recomendação acessada',
                                'recomendacaoAcessada'),
                 items.MenuItem('Recomendação aderida por clique',
                                'recomendacaoAderida'),
                 items.MenuItem('Recomendação aderida por recomendador',
                                'recomendacaoAderidaPorGeracao'),
                 items.MenuItem('Eficiência dos recomendadores',
                                'recomendacaoEficiencia'),
             ]))
Ejemplo n.º 13
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_('Dashboard'), reverse('admin:index')),
         items.Bookmarks("Filtros"),
         items.MenuItem(
             _('Users'),
             children=(
                 items.MenuItem(_('All'), "/admin/bikeanjo/profile/"),
                 items.MenuItem(
                     _('Bike Anjos'),
                     "/admin/bikeanjo/profile/?is_bikeanjo__exact=1"),
                 items.MenuItem(
                     _('Solicitantes'),
                     "/admin/bikeanjo/profile/?is_bikeanjo__exact=0"),
             )),
         items.MenuItem(_('Requests'),
                        children=(items.MenuItem(
                            _('All'), "/admin/bikeanjo/request/"), )),
         items.AppList(
             _('Applications'),
             exclude=('django.contrib.*', ),
         ),
         items.AppList(
             _('Administration'),
             models=('django.contrib.*', ),
         ),
     ]
Ejemplo n.º 14
0
    def __init__(self, **kwargs):
        Menu.__init__(self, **kwargs)
        self.children += [
            items.MenuItem(_('Dashboard'), reverse('admin:index')),
        ]

        # Foo
        self.children.append(items.ModelList(_('Foo'), models=conf.foo_apps))

        # News
        self.children.append(items.ModelList(_('News'), models=conf.news_apps))

        # Bookmark
        self.children.append(
            items.ModelList(_('Bookmark'), models=conf.bookmark_apps))

        # Dash
        self.children.append(items.ModelList(_('Dash'), models=conf.dash_apps))

        # Registration
        self.children.append(
            items.ModelList(_('Registration'), models=conf.registration_apps))

        # append an app list module for "Administration"
        self.children.append(
            items.AppList(_('Administration'), models=[
                'django.contrib.*',
            ]))
Ejemplo n.º 15
0
    def __init__(self, **kwargs):
        Menu.__init__(self, **kwargs)
        self.children += [
            items.MenuItem(_('Dashboard'), reverse('admin:index')),
        ]

        # Foo
        self.children.append(items.ModelList(_('Foo'),
            models=conf.foo_apps
        ))

        # News
        self.children.append(items.ModelList(_('News'),
            models=conf.news_apps
        ))

        # Dash
        self.children.append(items.ModelList(_('Dash'),
            models=conf.dash_apps
        ))

         # Registration
        self.children.append(items.ModelList(_('Registration'),
            models=conf.registration_apps
        ))

        # append an app list module for "Administration"
        self.children.append(items.AppList(
            _('Administration'),
            models=['django.contrib.*',]
        ))
Ejemplo n.º 16
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_('Dashboard'), reverse('admin:index')),
         items.Bookmarks(_('Favoritos')),
         items.AppList(_('Applications'),
                       exclude=(
                           'django.contrib.*',
                           'report.models.*',
                           'account.models.*',
                           'emailconfirmation.models.*',
                           'profiles.models.*',
                           'posts.models.*',
                           'elos.models.*',
                           'tagging.models.*',
                       )),
         items.AppList(_('Administration'),
                       models=(
                           'django.contrib.*',
                           'report.models.*',
                           'account.models.*',
                           'emailconfirmation.models.*',
                           'profiles.models.*',
                           'posts.models.*',
                           'elos.models.*',
                           'tagging.models.*',
                       )),
     ]
Ejemplo n.º 17
0
    def __init__(self, **kwargs):
        Menu.__init__(self, **kwargs)
        self.children += [
            items.MenuItem(_('Dashboard'), reverse('admin:index')),
            items.Bookmarks(),

        ]
Ejemplo n.º 18
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_('Dashboard'), reverse('admin:index')),
         items.AppList(_('Applications'), exclude=('django.contrib.*', )),
         items.AppList(_('Administration'), models=('django.contrib.*', ))
     ]
Ejemplo n.º 19
0
    def __init__(self, **kwargs):
        Menu.__init__(self, **kwargs)
        self.children += [
            items.MenuItem(_('Dashboard'), reverse('admin:index')),
            items.Bookmarks("Filtros"),
            items.MenuItem(_('Users'), children=(
                items.MenuItem(_('All'), "/admin/bikeanjo/profile/"),
                items.MenuItem(_('Bike Anjos'), "/admin/bikeanjo/profile/?is_bikeanjo__exact=1"),
                items.MenuItem(_('Solicitantes'), "/admin/bikeanjo/profile/?is_bikeanjo__exact=0"),
                )
            ),
            items.MenuItem(_('Requests'), children=(
                items.MenuItem(_('All'), "/admin/bikeanjo/request/"),
                )
            ),
            items.AppList(
                _('Applications'),
                exclude=('django.contrib.*',),
            ),
            items.AppList(
                _('Administration'),
                models=('django.contrib.*',),
            ),

        ]
Ejemplo n.º 20
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_('Dashboard'), reverse('admin:index')),
         CustomAppList(_('Core'),
                       exclude=(
                           'django.core.*',
                           'rest_framework.authtoken.*',
                           'nodeconductor.core.*',
                           'nodeconductor.structure.*',
                       ) + self.IAAS_CLOUDS + self.APPLICATION_PROVIDERS +
                       self.SUPPORT_MODULES),
         items.ModelList(_('Structure'),
                         models=(
                             'nodeconductor.core.*',
                             'nodeconductor_organization.*',
                             'nodeconductor.structure.*',
                         )),
         CustomAppList(
             _('IaaS clouds'),
             models=self.IAAS_CLOUDS,
         ),
         CustomAppList(
             _('Applications'),
             models=self.APPLICATION_PROVIDERS,
         ),
         CustomAppList(
             _('Subscriptions and support'),
             models=self.SUPPORT_MODULES,
         ),
     ]
Ejemplo n.º 21
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_("Dashboard"), reverse("admin:index")),
         items.Bookmarks(),
         items.AppList(_("Weblog"), models=("zinnia.*", "tagging.*", "django.contrib.comments.*")),
         items.AppList(_("Administration"), models=("django.contrib.*",), exclude=("django.contrib.comments.*",)),
     ]
Ejemplo n.º 22
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_('管理面板'), reverse('admin:index')),
         # items.Bookmarks(),
         items.AppList(_('应用'), exclude=('django.contrib.*', )),
         items.AppList(_('管理员设置'), models=('django.contrib.*', ))
     ]
Ejemplo n.º 23
0
Archivo: menu.py Proyecto: deusesx/VDom
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_("Dashboard"), reverse("admin:index")),
         items.Bookmarks(),
         items.AppList(_("Applications"), exclude=("django.contrib.*",)),
         items.AppList(_("Administration"), models=("django.contrib.*",)),
     ]
Ejemplo n.º 24
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem("Главная", "/"),
         items.MenuItem(_("Dashboard"), reverse("admin:index")),
         items.Bookmarks(),
         items.AppList(_("Administration")),
     ]
Ejemplo n.º 25
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_('Dashboard'), reverse('admin:index')),
         items.Bookmarks(),
         items.AppList(_('Applications'), exclude=('django.contrib.*', )),
         items.AppList(_('Administration'), models=('django.contrib.*', )),
         items.MenuItem(
             'Current Activity',
             children=[
                 items.MenuItem('Logged-in users',
                                '/current_activity/active_users/'),
                 items.MenuItem('Current translations',
                                '/current_activity/current_translations/'),
                 items.MenuItem('Translations with maximum hops',
                                '/current_activity/translations_max_hops/'),
                 items.MenuItem('Translations with minimum hops',
                                '/current_activity/translations_min_hops/'),
                 items.MenuItem('Total sentences translated',
                                '/current_activity/total_translations/'),
                 items.MenuItem('Average translation rate',
                                '/current_activity/avg_translation_rate/'),
                 items.MenuItem('Average convergence rate',
                                '/current_activity/avg_convergence_rate/'),
                 #items.MenuItem('Microtask similarity score', '/current_activity/microtask_similarity_score/')
             ]),
         items.MenuItem(
             'Background Tasks',
             children=[
                 items.MenuItem('Populate Subtask',
                                '/background_task/populate_subtask/'),
                 items.MenuItem(
                     'Populate StaticMicrotask',
                     '/background_task/populate_staticmicrotask/'),
                 items.MenuItem('Populate Microtask',
                                '/background_task/populate_microtask/'),
                 items.MenuItem('Unassign Microtask',
                                '/background_task/unassign_microtask/'),
                 items.MenuItem('Upload Priviledge',
                                '/background_task/upload_priviledge/'),
                 items.MenuItem(
                     'Update Weekly Leaderboard',
                     '/background_task/update_weekly_leaderboard/'),
                 items.MenuItem(
                     'Update Overall Leaderboard',
                     '/background_task/update_overall_leaderboard/'),
                 items.MenuItem(
                     'Update Statistics Counter',
                     '/background_task/update_statistics_counter/'),
                 items.MenuItem('Document Stability',
                                '/background_task/document_stability/'),
                 items.MenuItem('Reputation Score',
                                '/background_task/reputation_score/'),
                 items.MenuItem('Assign Rank',
                                '/background_task/assign_rank/')
             ]),
     ]
Ejemplo n.º 26
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_("Newfies-Dialer" + " V" + newfies.__version__), reverse("admin:index")),
         items.Bookmarks(),
         items.AppList(_("Applications"), exclude=("django.contrib.*",)),
         items.AppList(_("Administration"), models=("django.contrib.*",)),
         items.MenuItem(_("Customer Panel"), reverse("admin:index") + "../"),
     ]
Ejemplo n.º 27
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_('Dashboard'), reverse('admin:index')),
         items.Bookmarks(),
         items.AppList(
             _('Applications'),
         ),
     ]
Ejemplo n.º 28
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_('Dashboard'), reverse('admin:index')),
         items.AppList(_('Administration'), ),
         items.MenuItem(_('Sentry'), reverse('sentry')),
         items.MenuItem(_('Go to site'), reverse('main:index')),
         items.MenuItem(_('Forum'), reverse('forum:index')),
     ]
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_('Dashboard'), reverse('admin:index')),
         items.MenuItem(_('Tools'),
             children=[
                 items.MenuItem('PUBLISH', reverse('publish')),
             ]
         )
     ]
Ejemplo n.º 30
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_('Dashboard'), reverse('admin:index')),
         items.Bookmarks(u'Favoritos'),
         CustomAppList(
             u'Adminstração',
             models=('django.contrib.*', ),
         ),
     ]
Ejemplo n.º 31
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_('Dashboard'), reverse('admin:index')),
         items.Bookmarks(),
         items.AppList(_('Applications'), exclude=('django.contrib.*', )),
         items.AppList(_('Administration'), models=('django.contrib.*', )),
         items.ModelList('Test app menu',
                         ['test_app.models.Bar', 'django.contrib.auth.*'])
     ]
Ejemplo n.º 32
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children.append(
         MenuItem(title=_('Dashboard'), url=reverse('admin:index')))
     self.children.append(
         AppList(title=_('Applications'),
                 exclude_list=('django.contrib', )))
     self.children.append(
         AppList(title=_('Administration'),
                 include_list=('django.contrib', )))
Ejemplo n.º 33
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_('Dashboard'), reverse('admin:index')),
         items.AppList(_('Models'), exclude=('django.contrib.*', )),
         items.AppList(_('Administration'), models=('django.contrib.*', )),
         items.MenuItem(_('Protocol Management'),
                        children=[
                            items.MenuItem('Add User to Protocol',
                                           '/brp_admin/new_protocol_usr/'),
                            items.MenuItem(
                                'Add User Credentials to Protocol Group',
                                '/brp_admin/fn_in_progress/'),
                            items.MenuItem('Add Data Source to protocol',
                                           '/brp_admin/fn_in_progress/'),
                        ]),
         items.MenuItem(_('BRP Management'),
                        children=[
                            items.MenuItem('cache subjects',
                                           '/brp_admin/cache_subjects/'),
                            items.MenuItem('toggle maintenance',
                                           '/brp_admin/fn_in_progress/'),
                            items.MenuItem('cache ehb labels',
                                           '/brp_admin/cache_labels/'),
                        ]),
         items.MenuItem(_('User Management'),
                        children=[
                            items.MenuItem('re-activate user',
                                           '/brp_admin/reactivate_user/'),
                            items.MenuItem(
                                'update user nautilus credentials',
                                '/brp_admin/fn_in_progress/'),
                            items.MenuItem('update user REDCap credentials',
                                           '/brp_admin/fn_in_progress/'),
                        ]),
         items.MenuItem(
             _('BRP/EHB Useful links'),
             children=[
                 items.MenuItem('BRP EHB Gist',
                                '/brp_admin/fn_in_progress/'),
                 items.MenuItem(
                     'BRP read the docs',
                     'http://biorepository-portal.readthedocs.io/en/latest/'
                 ),
                 items.MenuItem('BRP user guide',
                                '/brp_admin/fn_in_progress/'),
                 items.MenuItem(
                     'BRP CHOP wiki',
                     'https://wiki.chop.edu/pages/viewpage.action?pageId=131957293'
                 ),
                 items.MenuItem(
                     'EHB CHOP wiki',
                     'https://wiki.chop.edu/display/CBMIDI/eHonest+Broker'),
             ]),
     ]
Ejemplo n.º 34
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_('Dashboard'), reverse('admin:index')),
         items.AppList(
             _('Administration'),
         ),
         items.MenuItem(_('Sentry'), reverse('sentry')),
         items.MenuItem(_('Go to site'), reverse('main:index')),
         items.MenuItem(_('Forum'), reverse('forum:index')),
     ]
Ejemplo n.º 35
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children.append(items.MenuItem(
         title=u'Main',
         url=reverse('admin:index')
     ))
     self.children.append(items.Bookmarks(title=u'Bookmarks'))
     self.children.append(items.MenuItem(
         title=u'Goto site',
         url='/'
     ))
Ejemplo n.º 36
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children.append(items.MenuItem(
         title=u'Main',
         url=reverse('admin:index')
     ))
     self.children.append(items.MenuItem(
         title=u'Web-Site',
         url='/'
     ))
     self.children.append(items.Bookmarks(title=u'Bookmarks'))
Ejemplo n.º 37
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_('Dashboard'), reverse('admin:index')),
         items.Bookmarks(),
         items.AppList(_('School'),
                       models=('lunches.*', 'newsletteers.*', 'staff.*',
                               'zinnia.*')),
         items.AppList(_('Administration'),
                       models=('profiles.*', 'django.contrib.*', 'robots.*',
                               'redirects.*'))
     ]
Ejemplo n.º 38
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children.append(items.MenuItem(title=_("site"), url="/"))
     self.children.append(items.MenuItem(title=_("Dashboard"), url=reverse("admin:index")))
     self.children.append(items.MenuItem(title=u"Резервные копии", url=reverse("django_backup:index")))
     self.children.append(items.MenuItem(title=u"Менеджер файлов", url=reverse("django_commander:index")))
     self.children.append(
         items.MenuItem(
             title=u"Менеджер моделей",
             # url=reverse('admin:index')
         )
     )
Ejemplo n.º 39
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_('Dashboard'), reverse('admin:index')),
         items.ModelList(u'Conteúdo', ['cuboweb.apps.*','*.Inscricao','website.*']),
         items.AppList(
             _('Administration'),
             models=('django.contrib.*',)
         ),
         items.MenuItem('Gerenciador de Arquivos', reverse('fb_browse')),
         items.MenuItem('Exportar Inscritos', '/admin/congresso/inscricao/inscritos/')
     ]
Ejemplo n.º 40
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_("Home"), reverse("home")),
         items.MenuItem(_("Data"), reverse("geonode.maps.views.search_page")),
         items.MenuItem(_("Maps"), reverse("geonode.maps.views.maps")),
         items.MenuItem(_("Tools"), reverse("cigno.tools.views.index")),
         items.MenuItem(_("Admin"), reverse("admin:index")),
         items.Bookmarks(),
         items.AppList(_("Applications"), exclude=("django.contrib.*",)),
         items.AppList(_("Administration"), models=("django.contrib.*",)),
     ]
Ejemplo n.º 41
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_('Dashboard'), reverse('admin:index')),
     ]
     self.children += [
         items.ModelList(_('Users'),
                         models=(
                             'leaderonomics.models.User',
                             'django.contrib.auth.*',
                         ))
     ]
Ejemplo n.º 42
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_('Dashboard'), reverse('admin:index')),
         items.Bookmarks(),
         items.AppList(_('Applications'), exclude=('django.contrib.*', )),
         items.AppList(_('Administration'), models=('django.contrib.*', )),
         items.MenuItem(
             'Current Activity',
             children=[
                 items.MenuItem('Logged-in users',
                                '/current_activity/active_users/'),
                 items.MenuItem('Total translation attempts',
                                '/current_activity/complete_user_history/'),
                 items.MenuItem('Current translations',
                                '/current_activity/current_translations/'),
                 items.MenuItem('Translations with maximum hops',
                                '/current_activity/translations_max_hops/'),
                 items.MenuItem('Translations with minimum hops',
                                '/current_activity/translations_min_hops/'),
                 items.MenuItem('Total sentences translated',
                                '/current_activity/total_translations/'),
                 items.MenuItem('Average translation rate',
                                '/current_activity/avg_translation_rate/'),
                 items.MenuItem('Average convergence rate',
                                '/current_activity/avg_convergence_rate/'),
                 #items.MenuItem('Microtask similarity score', '/current_activity/microtask_similarity_score/')
             ]),
         items.MenuItem(
             'Background Tasks',
             children=[
                 items.MenuItem('Populate task',
                                '/background_task/populate_task/'),
                 #                    items.MenuItem('Populate Microtask', '/background_task/populate_microtask/'),
                 #                    items.MenuItem('Unassign Microtask', '/background_task/unassign_microtask/'),
                 items.MenuItem('Upload Priviledge',
                                '/background_task/upload_priviledge/'),
                 items.MenuItem(
                     'Update Weekly Leaderboard',
                     '/background_task/update_weekly_leaderboard/'),
                 items.MenuItem(
                     'Update Overall Leaderboard',
                     '/background_task/update_overall_leaderboard/'),
                 items.MenuItem(
                     'Update Statistics Counter',
                     '/background_task/update_statistics_counter/'),
                 items.MenuItem('Document Stability',
                                '/background_task/document_stability/'),
                 #                    items.MenuItem('Reputation Score', '/background_task/reputation_score/'),
                 items.MenuItem('Assign Rank',
                                '/background_task/assign_rank/')
             ]),
     ]
Ejemplo n.º 43
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_("Dashboard"), reverse("admin:index")),
         items.Bookmarks(),
         # items.AppList(
         #    _('Applications'),
         #    exclude=('django.contrib.*',)
         # ),
         items.ModelList(_("MobRelease"), models=("apps.mobrelease.models.*",)),
         items.AppList(_("Administration"), models=("django.contrib.*",)),
     ]
Ejemplo n.º 44
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_('Dashboard'), reverse('admin:index')),
         items.Bookmarks('Закладки',
                         children=[
                             items.MenuItem('Пример 1', '#'),
                             items.MenuItem('Пример 2', '#'),
                         ]),
         items.AppList(_('Applications'), exclude=('django.contrib.*', )),
         items.AppList(_('Administration'), models=('django.contrib.*', ))
     ]
Ejemplo n.º 45
0
    def __init__(self, **kwargs):
        Menu.__init__(self, **kwargs)
        self.children.append(items.Bookmarks(title='Bookmarks'))

        self.children.append(items.AppList(
            title='Applications',
            exclude_list=('django.contrib',)
        ))
        self.children.append(items.AppList(
            title='Administration',
            include_list=('django.contrib',)
        ))
Ejemplo n.º 46
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_('CDR-Stats' + ' V' + cdr_stats.__version__),
                        reverse('admin:index')),
         items.Bookmarks(),
         items.AppList(_('Applications'), exclude=('django.contrib.*', )),
         items.AppList(_('Administration'), models=('django.contrib.*', )),
         items.MenuItem(_('API Explorer'),
                        reverse('admin:index') + '../api-explorer/'),
         items.MenuItem(_('Customer Panel'),
                        reverse('admin:index') + '../'),
     ]
Ejemplo n.º 47
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_('Home'), reverse('home')),
         items.MenuItem(_('Data'),
                        reverse('geonode.maps.views.search_page')),
         items.MenuItem(_('Maps'), reverse('geonode.maps.views.maps')),
         items.MenuItem(_('Tools'), reverse('cigno.tools.views.index')),
         items.MenuItem(_('Admin'), reverse('admin:index')),
         items.Bookmarks(),
         items.AppList(_('Applications'), exclude=('django.contrib.*', )),
         items.AppList(_('Administration'), models=('django.contrib.*', ))
     ]
Ejemplo n.º 48
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_('Dashboard'), reverse('admin:index')),
         items.AppList(
             _('Applications'),
             exclude=('django.contrib.*',)
         ),
         items.AppList(
             _('Administration'),
             models=('django.contrib.*',)
         )
     ]
Ejemplo n.º 49
0
    def __init__(self, **kwargs):
        Menu.__init__(self, **kwargs)
        self.children += [
            items.MenuItem(_('Dashboard'), reverse('admin:index')),
        ]

        # Foo
        self.children.append(
            items.ModelList(
                _('Foo'),
                models=conf.foo_apps
            )
        )

        # Fobi
        self.children.append(
            items.MenuItem(
                _('Fobi'),
                children=[
                    items.ModelList(_('Plugins'), models=conf.fobi_plugins),
                    items.ModelList(_('Forms'), models=conf.fobi_forms),
                    items.ModelList(_('Data'), models=conf.fobi_data),
                ]
            )
        )

        if 'feincms' in settings.INSTALLED_APPS:
            # FeinCMS pages integration
            self.children.append(
                items.AppList(
                    _('FeinCMS Pages'),
                    models=conf.feincms_pages
                )
            )

        if 'cms' in settings.INSTALLED_APPS:
            # DjangoCMS pages integration
            self.children.append(
                items.AppList(
                    _('DjangoCMS Pages'),
                    models=conf.djangocms_pages
                )
            )

        # append an app list module for "Administration"
        self.children.append(
            items.AppList(
                _('Administration'),
                models=['django.contrib.*']
            )
        )
Ejemplo n.º 50
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_('Dashboard'), reverse('admin:index')),
         items.Bookmarks(),
         CustomAppList(_('Applications'),
                       exclude=(
                           'django.core.*',
                           'rest_framework.authtoken.*',
                           'nodeconductor.core.*',
                       )),
         items.ModelList(_('User management'),
                         models=('nodeconductor.core.*', )),
     ]
Ejemplo n.º 51
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children.append(items.MenuItem(
         title=_('Dashboard'),
         url=reverse('admin:index')
     ))
     self.children.append(items.AppList(
         title=_('Applications'),
         models=('add.your.app.models.here',)
     ))
     self.children.append(items.AppList(
         title=_('Administration'),
         models=('django.contrib',)
     ))
Ejemplo n.º 52
0
Archivo: menu.py Proyecto: Chedi/GL
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_('Dashboard'), reverse('admin:index')),
         items.Bookmarks(),
         items.AppList(_('Applications'  ),exclude=('django.contrib.*',)),
         items.AppList(_('Administration'),models =('django.contrib.*',)),
         items.MenuItem(_('Api'), children = [
             items.MenuItem(_('Documentation'  ), '/tastytools/doc/'  ),
         ]),
         items.MenuItem(_('Raports'), children = [
             items.MenuItem(_('Produits'  ), '/admin/products/report/'  ),
             items.MenuItem(_('Composants'), '/admin/components/report/'),
         ])]
Ejemplo n.º 53
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem( _('Dashboard'), '/'),
         items.Bookmarks(),
         items.AppList(
             _('Applications'),
             exclude=('django.contrib.*',)
         ),
         items.AppList(
             _('Administration'),
             models=('django.contrib.*',)
         )
     ]
Ejemplo n.º 54
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_('Dashboard'), reverse('admin:index')),
         items.Bookmarks(),
         items.AppList(
             _('School'),
             models=('lunches.*', 'newsletteers.*', 'staff.*', 'zinnia.*' )
         ),
         items.AppList(
             _('Administration'),
             models=('profiles.*', 'django.contrib.*', 'robots.*', 'redirects.*')
         )
     ]
Ejemplo n.º 55
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children.append(MenuItem(
         title=_('Dashboard'),
         url=reverse('admin:index')
     ))
     self.children.append(AppList(
         title=_('Applications'),
         exclude_list=('django.contrib',)
     ))
     self.children.append(AppList(
         title=_('Administration'),
         include_list=('django.contrib',)
     ))
Ejemplo n.º 56
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_('Dashboard'), reverse('admin:index')),
         items.Bookmarks(_('Favoritos')),
         items.AppList(
             _('Applications'),
             exclude=('django.contrib.*', 'report.models.*', 'account.models.*', 'emailconfirmation.models.*', 'profiles.models.*', 'posts.models.*', 'elos.models.*', 'tagging.models.*',)
         ),
         items.AppList(
             _('Administration'),
             models=('django.contrib.*', 'report.models.*', 'account.models.*', 'emailconfirmation.models.*', 'profiles.models.*', 'posts.models.*', 'elos.models.*', 'tagging.models.*',)
         ),
     ]
Ejemplo n.º 57
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_(u'Главная'), reverse('admin:index')),
         items.AppList(
             _(u'Данные о продуктах и пр.'),
             exclude=('django.contrib.*',)
         ),
         items.AppList(
             _(u'Пользователи'),
             models=('django.contrib.*',)
         ),
         items.MenuItem(_(u'Статистика'), reverse('xml_generator.analytics.admin_views.users_stat')),
     ]
Ejemplo n.º 58
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(
             _('Newfies-Dialer' + ' V' + newfies_dialer.__version__),
             reverse('admin:index')),
         items.Bookmarks(),
         items.AppList(_('Applications'), exclude=('django.contrib.*', )),
         items.AppList(_('Administration'), models=('django.contrib.*', )),
         items.MenuItem(_('API Explorer'),
                        reverse('admin:index') + '../rest-api/'),
         items.MenuItem(_('Customer Panel'),
                        reverse('admin:index') + '../'),
     ]
Ejemplo n.º 59
0
 def __init__(self, **kwargs):
     Menu.__init__(self, **kwargs)
     self.children += [
         items.MenuItem(_(u'Админка'), reverse('admin:index')),
         items.Bookmarks(),
         items.AppList(
             _(u'Модули'),
             exclude=('django.contrib.*',)
         ),
         items.AppList(
             _(u'Администрирование'),
             models=('django.contrib.*',)
         )
     ]