def init_with_context(self, context): site = context.get("site") # append an app list module for "Applications" self.children.append( modules.AppList( _('Applications'), collapsible=True, column=1, css_classes=('collapse', ), exclude=('django.contrib.*', ), )) # append an app list module for "Administration" self.children.append( modules.ModelList( _('Administration'), column=1, collapsible=True, css_classes=('grp-closed', ), models=('django.contrib.*', ), )) # append another link list module for "support". self.children.append( modules.LinkList(_('Media Management'), column=2, children=[ { 'title': _('FileBrowser'), 'url': '/admin/filebrowser/browse/', 'external': False, }, ])) # append another link list module for "support". self.children.append( modules.LinkList(_('Support'), column=2, children=[{ 'title': _('Opps Documentation'), 'url': 'http://www.oppsproject.org/', 'external': True, }])) # append a feed module self.children.append( modules.Feed(_('Latest Publications'), column=2, feed_url='http://{0}/rss'.format(site.domain), limit=10)) # append a recent actions module self.children.append( modules.RecentActions( _('Recent Actions'), limit=5, collapsible=False, column=3, ))
def init_with_context(self, context): site_name = get_admin_site_name(context) # append a link list module for "quick links" self.children.append(modules.LinkList( _('Quick links'), layout='inline', draggable=False, deletable=False, collapsible=False, children=[ [_('Return to site'), '/'], [_('Change password'), reverse('%s:password_change' % site_name)], [_('Log out'), reverse('%s:logout' % site_name)], ] )) # append an app list module for "Applications" self.children.append(modules.AppList( _('Applications'), exclude=('django.contrib.*',), )) # append an app list module for "Administration" self.children.append(modules.AppList( _('Administration'), models=('django.contrib.*',), )) # append a recent actions module self.children.append(modules.RecentActions(_('Recent Actions'), 5)) # append a feed module self.children.append(modules.Feed( _('Latest Django News'), feed_url='http://www.djangoproject.com/rss/weblog/', limit=5 )) # append another link list module for "support". self.children.append(modules.LinkList( _('Support'), children=[ { 'title': _('Django documentation'), 'url': 'http://docs.djangoproject.com/', 'external': True, }, { 'title': _('Django "django-users" mailing list'), 'url': 'http://groups.google.com/group/django-users', 'external': True, }, { 'title': _('Django irc channel'), 'url': 'irc://irc.freenode.net/django', 'external': True, }, ] ))
def init_with_context(self, context): #site_name = get_admin_site_name(context) self.children.append( modules.ModelList(_('APP管理'), pre_content=''' ''', collapsible=True, column=1, css_classes=('collapse closed', ), models=( PREFIX + 'appinfo.APPInfo', PREFIX + 'appreview.APPReview', PREFIX + 'appinfo.APPDevice', PREFIX + 'appinfo.ASAccount', ))) self.children.append( modules.ModelList(_('短链接'), pre_content=''' ''', collapsible=True, column=1, css_classes=('collapse closed', ), models=(PREFIX + 'shorturl.ShortURL', ))) self.children.append( modules.ModelList(_('渠道管理'), pre_content=''' ''', collapsible=True, column=1, css_classes=('collapse closed', ), models=( PREFIX + 'channels.Channel', PREFIX + 'channels.ClickStat', ))) self.children.append( modules.ModelList( _('城市内容管理'), pre_content=''' ''', collapsible=True, column=1, css_classes=('collapse closed', ), models=(PREFIX + 'areas.Area', PREFIX + 'topics.Topic', PREFIX + 'places.Place', PREFIX + 'pictures.Picture', PREFIX + 'triptip.TripTip', PREFIX + 'offlinemap.OfflineMap'))) self.children.append( modules.ModelList(_('管理用户'), pre_content=''' ''', collapsible=True, column=1, css_classes=('collapse closed', ), models=(PREFIX + 'accounts.UserProfile', ))) self.children.append( modules.AppList(_('推送管理'), column=1, collapsible=False, models=('cityapp.apps.ios_notifications.*', ))) self.children.append( modules.AppList( _('系统管理员'), column=1, collapsible=False, models=('django.contrib.*', ), )) # append another link list module for "support". self.children.append( modules.LinkList(_('上传图片管理'), column=2, children=[ { 'title': _('FileBrowser'), 'url': '/admin/pics/browse/', 'external': False, }, ])) # append another link list module for "support". self.children.append( modules.LinkList( _('开发帮助'), column=2, children=[ { 'title': _('Django Documentation'), 'url': 'http://docs.djangoproject.com/', 'external': True, }, { 'title': _('Grappelli Documentation'), 'url': 'http://packages.python.org/django-grappelli/', 'external': True, }, ])) # append a feed module self.children.append( modules.Feed( _('最新评论'), column=2, feed_url= 'https://itunes.apple.com/cn/rss/customerreviews/id=577396339/sortBy=mostRecent/xml?l=en', limit=10)) # append a recent actions module self.children.append( modules.RecentActions( _('最近动作'), limit=5, collapsible=False, column=3, ))
def init_with_context(self, context): site_name = get_admin_site_name(context) # 第一列: 站点模型 self.children.append(modules.ModelList( _('>> 用户自定义模型'), collapsible=True, column=1, css_classes=('collapse open',), # 此处添加模型列表 models=[ 'account.models.User', 'project.models.Project', 'auth_token.models.AuthToken', 'data_source.models.DataSource', ] )) # 第一列: 站点模型 self.children.append(modules.ModelList( _('>> 收敛规则管理'), collapsible=True, column=1, css_classes=('collapse open',), # 此处添加模型列表 models=[ 'converge.models.BurrConverge', 'converge.models.DateTimeConverge', 'converge.models.TimeConverge', ] )) # 第一列: 消息事件 self.children.append(modules.ModelList( _('>> 消息事件管理'), collapsible=True, column=1, css_classes=('collapse open',), # 此处添加模型列表 models=[ 'message.models.Message', 'event.models.Event', 'silence.models.Silence', ] )) # 第二列: 管理员权限 self.children.append(modules.ModelList( _('管理员权限'), column=2, collapsible=True, models=('django.contrib.*',), )) self.children.append(modules.ModelList( _('周期性任务'), collapsible=True, column=2, css_classes=('collapse open',), models=['django_celery_beat.models.*'] )) # 第三列: 第三方链接 self.children.append(modules.LinkList( _('媒体文件管理'), column=3, children=[ { 'title': _('FileBrowser'), 'url': '/admin/filebrowser/browse/', 'external': False, }, ] )) self.children.append(modules.LinkList( _('文档支持'), column=3, children=[ { 'title': _('Django Documentation'), 'url': 'http://docs.djangoproject.com/', 'external': True, }, { 'title': _('Grappelli Documentation'), 'url': 'http://packages.python.org/django-grappelli/', 'external': True, }, { 'title': _('Grappelli Google-Code'), 'url': 'http://code.google.com/p/django-grappelli/', 'external': True, }, ] )) self.children.append(modules.Feed( _('RSS 订阅'), column=3, feed_url='http://www.djangoproject.com/rss/weblog/', limit=5 )) # 第四列: 最近操作 self.children.append(modules.RecentActions( _('最近操作'), column=4, collapsible=True, limit=10, ))
def init_with_context(self, context): # append a group for "Administration" & "Applications" #self.children.append(modules.Group( # _('Users & Groups'), # column=1, # collapsible=True, # children = [ # modules.ModelList( # _('Users'), # column=1, # css_classes=('collapse closed',), # models=('django.contrib.auth.models.User', # 'django.contrib.auth.models.Group', # 'e_cidadania.apps.accounts.models.UserProfile',) # ), # modules.AppList( # _('Applications'), # column=1, # css_classes=('collapse closed',), # exclude=('django.contrib.*',), # ), # ] #)) # append an app list module for "Applications" self.children.append( modules.ModelList( _('Users'), column=1, collapsible=False, models=( 'django.contrib.auth.models.User', 'e_cidadania.apps.accounts.models.UserProfile', 'django.contrib.auth.models.Group', 'django.contrib.sites.*', ))) self.children.append( modules.AppList( _('Applications'), collapsible=False, column=1, exclude=( 'django.contrib.*', 'e_cidadania.apps.accounts.*', ), )) # append a feed module self.children.append( modules.Feed(_('Latest News'), column=2, feed_url='http://www.djangoproject.com/rss/weblog/', limit=5)) # append another link list module for "media". self.children.append( modules.LinkList(_('Media Management'), column=2, children=[ { 'title': _('FileBrowser'), 'url': '/admin/filebrowser/browse/', 'external': False, }, ])) # append another link list module for "support". self.children.append( modules.LinkList(_('e-cidadania Support'), column=2, children=[ { 'title': _('Documentation'), 'url': 'http://docs.ecidadania.org', 'external': True, }, { 'title': _('Wiki'), 'url': 'http://dev.ecidadania.org', 'external': True, }, { 'title': _('Translations'), 'url': '../rosetta', 'external': True, }, ])) self.children.append( modules.LinkList( _('Thirdparty Support'), column=2, children=[ { 'title': _('Django Documentation'), 'url': 'http://docs.djangoproject.com/', 'external': True, }, { 'title': _('Grappelli Documentation'), 'url': 'http://packages.python.org/django-grappelli/', 'external': True, }, { 'title': _('python-dateutil Documentation'), 'url': 'http://labix.org/python-dateutil', 'external': True, }, ])) # append another link list module for "support". self.children.append( modules.LinkList(_('e-cidadania source code'), column=2, children=[ { 'title': _('GitHub'), 'url': 'http://github.com/oscarcp/e-cidadania', 'external': True, }, { 'title': _('Gitorious'), 'url': 'http://gitorious.org/e-cidadania', 'external': True, }, { 'title': _('Repo.or.vz (Mirror)'), 'url': 'http://repo.or.cz/w/e_cidadania.git', 'external': True, }, ])) # append a recent actions module self.children.append( modules.RecentActions( _('Recent Actions'), limit=5, collapsible=False, column=3, ))
def init_with_context(self, context): # site_name = get_admin_site_name(context) self.children.append(MenuModule(column=1)) # with connection.schema_editor() as schema_editor: # schema_editor.create_model(PageNodeDummy) self.children.append(PageNodesModule(model=SectionList, column=1)) # append an app list module for "Applications" self.children.append( modules.AppList( _('AppList: Applications'), collapsible=True, column=1, css_classes=('collapse closed', ), exclude=('django.contrib.*', 'pagetools.sections.*'), )) # append an app list module for "Administration" self.children.append( modules.ModelList( _('ModelList: Administration'), column=1, collapsible=False, models=('django.contrib.*', ), )) # append another link list module for "support". self.children.append( modules.LinkList(_('Media Management'), column=2, children=[ { 'title': _('FileBrowser'), 'url': '/admin/filebrowser/browse/', 'external': False, }, ])) # append another link list module for "support". self.children.append( modules.LinkList( _('Support'), column=2, children=[ { 'title': _('Django Documentation'), 'url': 'http://docs.djangoproject.com/', 'external': True, }, { 'title': _('Grappelli Documentation'), 'url': 'http://packages.python.org/django-grappelli/', 'external': True, }, { 'title': _('Grappelli Google-Code'), 'url': 'http://code.google.com/p/django-grappelli/', 'external': True, }, ])) # append a feed module self.children.append( modules.Feed(_('Latest Django News'), column=2, feed_url='http://www.djangoproject.com/rss/weblog/', limit=5)) # append a recent actions module self.children.append( modules.RecentActions( _('Recent Actions'), limit=5, collapsible=False, column=3, ))
def init_with_context(self, context): site_name = get_admin_site_name(context) # append a group for "Administration" & "Applications" self.children.append(modules.Group( _('Group: Administration & Applications'), column=1, collapsible=False, children = [ modules.AppList( _('Gstudio (Basic)'), column=1, collapsible=False, models=( 'objectapp.models.Gbobject', 'objectapp.models.System', 'gstudio.models.Relation', 'gstudio.models.Attribute', ), ), modules.AppList( #Gstudio models here ( other than attribute datatype and collapsible ones) _('Gstudio (Advanced)'), column=1, collapsible=True, models=( 'gstudio.models.Objecttype', 'gstudio.models.Attributetype', 'gstudio.models.Relationtype', 'gstudio.models.Metatype', 'gstudio.models.Systemtype', 'gstudio.models.Processtype', 'gstudio.models.AttributeSpecification', 'gstudio.models.RelationSpecification', 'gstudio.models.NodeSpecification', 'gstudio.models.Union', 'gstudio.models.Complement', 'gstudio.models.Intersection', 'gstudio.models.Expression', 'gstudio.models.Peer', ), ), #Object App models here modules.AppList( _('Object App (Advanced)'), column=1, collapsible=True, models=( 'objectapp.models.Process', ), ), # Gstudio Attribute datatype models here modules.AppList( _('Attribute Manager'), column=1, collapsible=True, models=( 'gstudio.models.AttributeCharField', 'gstudio.models.AttributeTextField', 'gstudio.models.AttributeIntegerField', 'gstudio.models.AttributeCommaSeparatedIntegerField', 'gstudio.models.AttributeBigIntegerField', 'gstudio.models.AttributePositiveIntegerField', 'gstudio.models.AttributeDecimalField', 'gstudio.models.AttributeFloatField', 'gstudio.models.AttributeBooleanField', 'gstudio.models.AttributeNullBooleanField', 'gstudio.models.AttributeDateField', 'gstudio.models.AttributeDateTimeField', 'gstudio.models.AttributeTimeField', 'gstudio.models.AttributeEmailField', 'gstudio.models.AttributeFileField', 'gstudio.models.AttributeFilePathField', 'gstudio.models.AttributeImageField', 'gstudio.models.AttributeURLField', ), ), modules.AppList( _('Other Applications'), column=1, # css_classes=('collapse closed',), exclude=('django.contrib.*','gstudio.models.*','objectapp.models.*'),), modules.AppList( _('Administration'), column=1, collapsible=False, models=('django.contrib.*',), ), ] )) # append an app list module for "Applications" self.children.append(modules.AppList( _('AppList: Applications'), collapsible=False, column=2, css_classes=('collapse closed',), exclude=('django.contrib.*',), )) # append an app list module for "Administration" self.children.append(modules.ModelList( _('ModelList: Administration'), column=2, collapsible=False, models=('django.contrib.*',), children=[ { 'title': _('FileBrowser'), 'url': '/admin/filebrowser/browse/', 'external': False, }, ] )) # append another link list module for "support". self.children.append(modules.LinkList( _('Media Management'), column=2, children=[ { 'title': _('FileBrowser'), 'url': '/admin/filebrowser/browse/', 'external': False, }, ] )) # append another link list module for "support". self.children.append(modules.LinkList( _('Support'), column=2, children=[ { 'title': _('Django Documentation'), 'url': 'http://docs.djangoproject.com/', 'external': True, }, { 'title': _('Grappelli Documentation'), 'url': 'http://packages.python.org/django-grappelli/', 'external': True, }, { 'title': _('Grappelli Google-Code'), 'url': 'http://code.google.com/p/django-grappelli/', 'external': True, }, ] )) # append a feed module self.children.append(modules.Feed( _('Latest Django News'), column=2, feed_url='http://www.djangoproject.com/rss/weblog/', limit=5 )) # append a recent actions module self.children.append(modules.RecentActions( _('Recent Actions'), limit=5, collapsible=False, column=3, ))
def init_with_context(self, context): site_name = get_admin_site_name(context) self.children.append( modules.Group( _('koalixcrm Version' + KOALIXCRM_VERSION), column=1, collapsible=True, children=[ modules.ModelList( _('Sales Documents and Contracts'), column=1, css_classes=('collapse closed', ), models=( 'koalixcrm.crm.documents.contract.Contract', 'koalixcrm.crm.documents.quote.Quote', 'koalixcrm.crm.documents.purchaseconfirmation.PurchaseConfirmation', 'koalixcrm.crm.documents.deliverynote.DeliveryNote', 'koalixcrm.crm.documents.invoice.Invoice', 'koalixcrm.crm.documents.paymentreminder.PaymentReminder', ), ), modules.ModelList( _('Scheduler'), column=1, css_classes=('collapse closed', ), models=( 'koalixcrm.crm.contact.contact.CallForContact', 'koalixcrm.crm.contact.contact.VisitForContact', ), ), modules.ModelList( _('Products'), column=1, css_classes=('collapse closed', ), models=('koalixcrm.crm.product.product.Product', ), ), modules.ModelList( _('Contacts'), column=1, css_classes=('collapse closed', ), models=( 'koalixcrm.crm.contact.customer.Customer', 'koalixcrm.crm.contact.supplier.Supplier', 'koalixcrm.crm.contact.person.Person', ), ), modules.ModelList( _('Accounting'), column=1, css_classes=('collapse closed', ), models=('koalixcrm.accounting.*', ), ), modules.ModelList( _('Projects'), column=1, css_classes=('collapse closed', ), models=( 'koalixcrm.crm.reporting.*', 'koalixcrm.crm.documents.purchaseorder.PurchaseOrder', ), ), modules.LinkList( _('Report Work And Expenses'), column=1, children=[{ 'title': _('Time Tracking'), 'url': '/koalixcrm/crm/reporting/time_tracking/', 'external': False }]) ])) # append a group for "Administration" & "Applications" self.children.append( modules.Group( _('Group: Administration & Applications'), column=1, collapsible=True, children=[ modules.ModelList( _('Administration'), column=1, collapsible=False, models=('django.contrib.*', ), ), modules.ModelList( _('koalixcrm Settings'), column=1, css_classes=('collapse closed', ), models= ('koalixcrm.crm.contact.customerbillingcycle.CustomerBillingCycle', 'koalixcrm.crm.contact.customergroup.CustomerGroup', 'koalixcrm.crm.product.tax.Tax', 'koalixcrm.crm.product.unit.Unit', 'koalixcrm.crm.product.currency.Currency', 'koalixcrm.djangoUserExtension.*'), ), ])) # append another link list module for "support". self.children.append( modules.LinkList(_('Media Management'), column=2, children=[ { 'title': _('FileBrowser'), 'url': '/admin/filebrowser/browse/', 'external': False, }, ])) # append another link list module for "support". self.children.append( modules.LinkList( _('Support'), column=2, children=[ { 'title': _('koalixcrm on github'), 'url': 'https://github.com/scaphilo/koalixcrm/', 'external': True, }, { 'title': _('Django Documentation'), 'url': 'http://docs.djangoproject.com/', 'external': True, }, { 'title': _('Grappelli Documentation'), 'url': 'http://packages.python.org/django-grappelli/', 'external': True, }, { 'title': _('Grappelli Google-Code'), 'url': 'http://code.google.com/p/django-grappelli/', 'external': True, }, ])) # append a feed module self.children.append( modules.Feed(_('Latest Django News'), column=2, feed_url='http://www.djangoproject.com/rss/weblog/', limit=5)) # append a recent actions module self.children.append( modules.RecentActions( _('Recent Actions'), limit=5, collapsible=False, column=3, ))
def __init__(self, **kwargs): Dashboard.__init__(self, **kwargs) self.children.append(modules.Group( column=1, title='CWSP', children=[ modules.ModelList( models=( 'ecwsp.work_study.models.StudentWorker', 'ecwsp.work_study.models.StudentInteraction', 'ecwsp.work_study.models.Attendance', 'ecwsp.work_study.models.PickupLocation', 'ecwsp.work_study.models.CraContact', 'ecwsp.work_study.models.Personality', 'ecwsp.work_study.models.Handout33', 'ecwsp.work_study.models.PresetComment', 'ecwsp.work_study.models.AttendanceFee', 'ecwsp.work_study.models.AttendanceReason', ), ), modules.ModelList( title="Company Data", models=( 'ecwsp.work_study.models.Company', 'ecwsp.work_study.models.WorkTeam', 'ecwsp.work_study.models.WorkTeamUser', 'ecwsp.work_study.models.TimeSheet', 'ecwsp.work_study.models.TimeSheetPerformanceChoice', 'ecwsp.work_study.models.Contact', 'ecwsp.work_study.models.CompanyContract', 'ecwsp.work_study.models.CompanyHistory', 'ecwsp.work_study.models.ClientVisit', 'ecwsp.work_study.models.PaymentOption', 'ecwsp.work_study.models.StudentDesiredSkill', 'ecwsp.work_study.models.StudentFunctionalResponsibility', 'ecwsp.work_study.models.CompContract', 'ecwsp.work_study.models.MessageToSupervisor', ), ), ] )) self.children.append(modules.ModelList( title=_('School Information'), column=1, models=( 'ecwsp.sis.models.SchoolYear', 'ecwsp.sis.models.Student', 'ecwsp.sis.models.EmergencyContact', 'ecwsp.sis.models.Cohort', 'ecwsp.sis.models.PerCourseCohort', 'ecwsp.sis.models.ReasonLeft', 'ecwsp.sis.models.Faculty', 'ecwsp.sis.models.MessageToStudent', 'ecwsp.sis.models.FamilyAccessUser', ), )) self.children.append(modules.ModelList( title=('Volunteer Tracking'), column=1, models=( 'ecwsp.volunteer_track.*', ), )) self.children.append(modules.ModelList( title=_('Attendance'), column=1, models=('ecwsp.sis.models.StudentAttendance', 'ecwsp.sis.models.AttendanceStatus', 'ecwsp.sis.models.ASPAttendance', ), )) self.children.append(modules.ModelList( title = 'Discipline', column=1, models=( 'ecwsp.discipline.models.StudentDiscipline', 'ecwsp.discipline.models.DisciplineAction', 'ecwsp.discipline.models.PresetComment', ), )) self.children.append(modules.ModelList( title = 'Attendance', column=1, models=( 'ecwsp.attendance.*', ), )) self.children.append(modules.ModelList( title='Courses and Grades', column=1, models=('ecwsp.schedule.*','ecwsp.grades.*','ecwsp.benchmark_grade.*','ecwsp.benchmarks.*'), )) self.children.append(modules.ModelList( title='Standard Tests', column=1, models=('ecwsp.standard_test.*',), )) self.children.append(modules.ModelList( title='Admissions', column=1, models=('ecwsp.admissions.*',), )) self.children.append(modules.ModelList( title='Counseling', column=1, models=('ecwsp.counseling.*',), )) self.children.append(modules.ModelList( title='Alumni', column=1, models=('ecwsp.alumni.*',), )) self.children.append(modules.ModelList( title='OpenMetricRecognition', column=1, models=('ecwsp.omr.*',), )) self.children.append(modules.Feed( title='Annoucements', column=2, # Run feed through feedburner to prevent pain if it gets slow or something happens. feed_url='http://feeds.feedburner.com/FeedForBurkeSoftwareAndConsultingLlc', limit=2 )) self.children.append(modules.AppList( title='Administration', column=2, models=( 'django.contrib.*', 'ecwsp.sis.models.ReportField', 'ecwsp.administration.*', 'ecwsp.engrade_sync.*', 'ldap_groups.*', 'google_auth.*', ) )) # append a recent actions module self.children.append(modules.RecentActions( title='Recent Actions', column=2, limit=5 )) self.children.append(modules.LinkList( column=2, children=( { 'title': 'SWORD Wiki and Manual', 'url': 'https://sites.google.com/a/cristoreyny.org/sword-wiki/', 'external': True, }, { 'title': 'Student Worker Relation Database Community', 'url': 'http://code.google.com/p/student-worker-relational-database/', 'external': True, }, { 'title': 'Database documentation', 'url': 'admin/doc', }, { 'title': 'Burke Software', 'url': 'http://burkesoftware.com', 'external': True, }, ) ))
def init_with_context(self, context): site_name = get_admin_site_name(context) # append a link list module for "quick links" self.children.append( modules.LinkList( _('Quick links'), layout='inline', children=[ [_('Return to site'), '/'], [ _('Change password'), reverse('%s:password_change' % site_name) ], [_('Log out'), reverse('%s:logout' % site_name)], ], column=1, order=0)) # append a recent actions module self.children.append( modules.RecentActions(_('Recent Actions'), limit=5, collapsible=False, column=1, order=1)) # append an app list module for "Administration" self.children.append( modules.ModelList(_('Administration'), models=('django.contrib.*', ), column=2, order=0)) # append an app list module for "Applications" self.children.append( modules.AppList(_('Applications'), css_classes=('collapse closed', ), exclude=('django.contrib.*', ), column=2, order=1)) # append another link list module for "support". self.children.append( modules.LinkList( _('Support'), column=3, order=0, children=[ { 'title': _('Django Documentation'), 'url': 'http://docs.djangoproject.com/', 'external': True, }, { 'title': _('Grappelli Documentation'), 'url': 'http://packages.python.org/django-grappelli/', 'external': True, }, { 'title': _('Grappelli Google-Code'), 'url': 'http://code.google.com/p/django-grappelli/', 'external': True, }, ])) # append a feed module self.children.append( modules.Feed(_('Latest Django News'), column=3, order=1, feed_url='http://www.djangoproject.com/rss/weblog/', limit=5))
def init_with_context(self, context): site_name = get_admin_site_name(context) self.children.append( modules.Group( _('PHSA Service Operations Center Applications'), column=1, collapsible=False, children=[ modules.ModelList(_('Citrix Remote Monitoring'), collapsible=True, css_classes=('collapse closed', ), models=('citrus_borg.models.*', )), modules.ModelList(_('Exchange Remote Monitoring'), collapsible=True, css_classes=('collapse closed', ), models=('mail_collector.models.*', )), modules.ModelList( _('SSL Certificates Tracker'), collapsible=True, css_classes=('collapse closed', ), models=('ssl_cert_tracker.models.*', ), exclude=('ssl_cert_tracker.models.Subscription', )), modules.ModelList(_('Orion Integration'), collapsible=True, css_classes=('collapse closed', ), models=('orion_integration.models.*', )), ])) self.children.append( modules.Group( _('Administration'), column=2, collapsible=True, children=[ modules.ModelList(_('Authentication and Authorization'), collapsible=True, models=('django.contrib.*', )), modules.ModelList(_('Periodic Tasks Configuration'), collapsible=True, models=('django_celery_beat.*', )), modules.ModelList(_('Preferences'), collapsible=True, models=('dynamic_preferences.*', )), modules.ModelList( _('Email Subscriptions'), collapsible=True, models=('ssl_cert_tracker.models.Subscription', )), modules.RecentActions( _('Recent Actions'), limit=5, collapsible=True, ), ])) self.children.append( modules.LinkList( _('User guides'), column=3, children=[ { 'title': _('SOC Automation Documentation'), 'url': '/soc_docs/', 'external': False, }, { 'title': ('Configuring SSL Alerts and SSL Monitoring on the' ' Automation Server'), 'url': ('http://our.healthbc.org/sites/gateway/team/TSCSTHub/' '_layouts/15/WopiFrame2.aspx?sourcedoc=/sites/gateway/' 'team/TSCSTHub/Shared Documents/Drafts/SOC - Procedural' ' Guide - Configuring SSL alerts and monitoring on the' ' Automation Server.doc&action=default'), 'external': True, }, { 'title': ('Exchange Monitoring Client'), 'url': ('http://our.healthbc.org/sites/gateway/team/TSCSTHub/' '_layouts/15/WopiFrame2.aspx?sourcedoc=/sites/gateway/' 'team/TSCSTHub/Shared Documents/Drafts/SOC - Procedural' ' Guide - Exchange Monitoring Client Version 2.' 'doc&action=default'), 'external': True, }, { 'title': ('Handling Emails From the Citrix Monitoring Automation' ' Server'), 'url': ('http://our.healthbc.org/sites/gateway/team/TSCSTHub/' '_layouts/15/WopiFrame2.aspx?sourcedoc=/sites/gateway/' 'team/TSCSTHub/Shared Documents/Drafts/SOC - Procedural' ' Guide - Handling Emails From the Citrix Monitoring' ' Automation Server.doc&action=default'), 'external': True, }, { 'title': "Other MOP's", 'url': ('http://our.healthbc.org/sites/gateway/team/TSCSTHub/' 'Shared Documents/Forms/AllItems.aspx?' 'RootFolder=%2fsites%2fgateway%2fteam%2fTSCSTHub%2fShared' ' Documents%2fMethod of Procedures (MOPs)&Folder' 'CTID=0x01200049BD2FC3E2032F40A74A4A7D97D53F7A'), 'external': True }, { 'title': 'PHSA SOC SharePoint', 'url': ('http://our.healthbc.org/sites/gateway/team/TSCSTHub/' 'SitePages/Home.aspx'), 'external': True, }, ])) self.children.append( modules.LinkList( _('Support'), column=3, children=[ { 'title': _('Django Documentation'), 'url': 'http://docs.djangoproject.com/', 'external': True, }, { 'title': _('Grappelli Documentation'), 'url': 'http://packages.python.org/django-grappelli/', 'external': True, }, { 'title': _('Grappelli Google-Code'), 'url': 'http://code.google.com/p/django-grappelli/', 'external': True, }, ])) self.children.append( modules.Feed(_('Latest Django News'), column=3, limit=5, feed_url='http://www.djangoproject.com/rss/weblog/'))
def init_with_context(self, context): # site_name = get_admin_site_name(context) self.children.append(MenuModule(column=1)) self.children.append(PageNodesModule(model=SectionList, column=1)) # append an app list module for "Applications" self.children.append( modules.AppList( _("AppList: Applications"), collapsible=True, column=1, css_classes=("collapse closed", ), exclude=("django.contrib.*", ), )) # append an app list module for "Administration" self.children.append( modules.ModelList( _("ModelList: Administration"), column=1, collapsible=False, models=("django.contrib.*", ), )) # append another link list module for "support". self.children.append( modules.LinkList( _("Media Management"), column=2, children=[ { "title": _("FileBrowser"), "url": "/admin/filebrowser/browse/", "external": False, }, ], )) # append another link list module for "support". self.children.append( modules.LinkList( _("Support"), column=2, children=[ { "title": _("Django Documentation"), "url": "http://docs.djangoproject.com/", "external": True, }, { "title": _("Grappelli Documentation"), "url": "http://packages.python.org/django-grappelli/", "external": True, }, { "title": _("Grappelli Google-Code"), "url": "http://code.google.com/p/django-grappelli/", "external": True, }, ], )) # append a feed module self.children.append( modules.Feed( _("Latest Django News"), column=2, feed_url="http://www.djangoproject.com/rss/weblog/", limit=5, )) # append a recent actions module self.children.append( modules.RecentActions( _("Recent Actions"), limit=5, collapsible=False, column=3, ))
def init_with_context(self, context): site_name = get_admin_site_name(context) self.children.append( modules.ModelList(_('User Administration'), column=1, collapsible=False, models=('django.contrib.auth.*', )), ) self.children.append( modules.AppList( _('FixMyCity Management'), collapsible=False, column=1, models=( 'api.*', 'sapi.*', ), exclude=( 'api.models.Rating', 'api.models.Photo', 'api.models.Address', 'api.models.Comment', ), )) self.children.append( modules.ModelList( _('Social Authentication Module'), collapsible=True, column=1, css_classes=('collapse closed', ), models=('social_auth.*', ), )) self.children.append( modules.ModelList( _('Asynchronous Task Queue'), collapsible=True, column=1, css_classes=('collapse closed', ), models=('djcelery.*', ), )) self.children.append( modules.AppList( _('Miscellaneous'), collapsible=True, column=1, css_classes=('collapse closed', ), exclude=( 'django.contrib.auth.*', 'sapi.*', 'social_auth.*', 'api.*', 'djcelery.*', ), )) self.children.append( modules.LinkList( _('Support'), column=2, children=[ { 'title': _('FixMyCity Website'), 'url': 'http://www.fixmycity.de/', 'external': True, }, { 'title': _('FixMyCity Android App'), 'url': '/static/FixMyCity.apk', 'external': True, }, { 'title': _('Django Documentation'), 'url': 'http://docs.djangoproject.com/', 'external': True, }, { 'title': _('Grappelli Documentation'), 'url': 'http://packages.python.org/django-grappelli/', 'external': True, }, { 'title': _('Grappelli Google-Code'), 'url': 'http://code.google.com/p/django-grappelli/', 'external': True, }, ])) # append a feed module self.children.append( modules.Feed( _('e-Government News'), column=2, feed_url= 'http://www.guardian.co.uk/technology/e-government/rss', limit=5)) # append a recent actions module self.children.append( modules.RecentActions( _('Recent Actions'), limit=5, collapsible=False, column=3, ))
def init_with_context(self, context): site_name = get_admin_site_name(context) # append a group for "Administration" & "Applications" self.children.append( modules.Group(_('Group: Administration & Applications'), column=1, collapsible=False, children=[ modules.AppList( _('Administration'), column=1, collapsible=True, css_classes=('collapse closed', ), models=('django.contrib.*', ), ), modules.AppList( _('Applications'), column=1, collapsible=False, exclude=('django.contrib.*', ), ) ])) # append an app list module for "Administration" self.children.append( modules.ModelList( _('ModelList: Administration'), column=1, collapsible=False, models=('django.contrib.*', ), )) # append another link list module for "support". self.children.append( modules.LinkList(_('Media Management'), column=2, children=[ { 'title': _('FileBrowser'), 'url': '/admin/filebrowser/browse/', 'external': False, }, ])) # append another link list module for "support". self.children.append( modules.LinkList( _('Support'), column=2, children=[ { 'title': _('koalixcrm documentation'), 'url': 'http://docs.koalix.org/', 'external': True, }, { 'title': _('koalixcrm "koalixcrm-user" mailing list'), 'url': 'http://groups.google.com/group/koalixcrm-users', 'external': True, }, ])) # append a feed module self.children.append( modules.Feed( title=_('Latest koalixcrm News'), column=2, feed_url='http://www.koalix.org/projects/koalixcrm/news.atom', limit=5)) # append a recent actions module self.children.append( modules.RecentActions( _('Recent Actions'), limit=5, collapsible=False, column=3, ))
def init_with_context(self, context): site_name = get_admin_site_name(context) self.children.append( modules.AppList( _('Blog'), collapsible=True, column=1, models=('wapo_allmet_proj.apps.blog.*', ), )) self.children.append( modules.AppList( _('Feeds'), collapsible=True, column=1, models=('wapo_allmet_proj.apps.feeds.*', ), )) self.children.append( modules.AppList( _('Home'), collapsible=True, column=1, models=('wapo_allmet_proj.apps.home.*', ), )) self.children.append( modules.ModelList( _('Administration'), column=2, collapsible=True, models=('django.contrib.*', ), )) self.children.append( modules.AppList( _('Meet Sports'), collapsible=True, column=1, css_classes=('collapse closed', ), models=('wapo_allmet_proj.apps.sports.cross_countr*', 'wapo_allmet_proj.apps.sports.gol*', 'wapo_allmet_proj.apps.sports.swimmin*', 'wapo_allmet_proj.apps.sports.trac*', 'wapo_allmet_proj.apps.sports.wrestlin*', 'wapo_allmet_proj.apps.sports.tenni*'), )) self.children.append( modules.AppList( _('Boys Sports'), collapsible=True, column=1, css_classes=('collapse closed', ), models=('wapo_allmet_proj.apps.sports.boys_*', 'wapo_allmet_proj.apps.sports.foot*', 'wapo_allmet_proj.apps.sports.base*', 'wapo_allmet_proj.apps.sports.hock*'), )) self.children.append( modules.AppList( _('Girls Sports'), collapsible=True, column=1, css_classes=('collapse closed', ), models=('wapo_allmet_proj.apps.sports.girls_*', 'wapo_allmet_proj.apps.sports.volley*', 'wapo_allmet_proj.apps.sports.soft*', 'wapo_allmet_proj.apps.sports.field_*'), )) self.children.append( modules.Feed( _('Latest Django News'), column=2, feed_url= 'http://feeds.washingtonpost.com/rss/sports/highschools', limit=10)) self.children.append( modules.RecentActions( _('Recent Actions'), limit=15, collapsible=False, column=3, ))
def init_with_context(self, context): site_name = get_admin_site_name(context) self.children.append(modules.ModelList( _('Shaping Data'), column=1, collapsible=True, css_classes=('grp-collapse grp-closed',), models=( 'bottler.bottles.models.BottleField', 'bottler.bottles.models.Bottle', 'bottler.labels.models.LabelField', 'bottler.labels.models.Label', 'bottler.containers.models.Container', ), )) self.children.append(modules.ModelList( _('Filtering Data'), column=1, collapsible=True, css_classes=('grp-collapse grp-closed',), models=( 'target.followees.models.Followee', 'target.locations.models.Location', 'target.searchterms.models.SearchTerm', 'aggregator.filters.models.Filter', ), )) self.children.append(modules.Group( _('Sifting Data'), column=1, collapsible=True, css_classes=('grp-collapse grp-closed',), children=[ modules.ModelList( _('Logs'), column=1, css_classes=('grp-collapse grp-closed',), models=( 'sifter.logsifter.logsieves.models.LogRule', 'sifter.logsifter.logsieves.models.LogSieve', 'sifter.logsifter.logmungers.models.LogMunger', 'sifter.logsifter.logchutes.models.LogChute', ), ), modules.ModelList( _('Email'), css_classes=('grp-collapse grp-closed',), models=( 'sifter.mailsifter.mailsieves.models.MailRule', 'sifter.mailsifter.mailsieves.models.MailSieve', 'sifter.mailsifter.mailmungers.models.MailMunger', 'sifter.mailsifter.mailchutes.models.MailChute', ), ), modules.ModelList( _('JSON Data'), column=1, css_classes=('grp-collapse grp-closed',), models=( 'sifter.datasifter.datasieves.models.DataRule', 'sifter.datasifter.datasieves.models.DataSieve', 'sifter.datasifter.datamungers.models.DataMunger', 'sifter.datasifter.datachutes.models.DataChute', ), ), ] )) self.children.append(modules.Group( _('Condensing Data'), column=1, collapsible=True, css_classes=('grp-collapse grp-closed',), children=[ modules.ModelList( _('Logs'), css_classes=('grp-collapse grp-closed',), models=( 'sifter.logsifter.logcondensers.models.LogParser', 'sifter.logsifter.logcondensers.models.LogCondenser', ), ), modules.ModelList( _('Email'), css_classes=('grp-collapse grp-closed',), models=( 'sifter.mailsifter.mailcondensers.models.MailParser', 'sifter.mailsifter.mailcondensers.models.MailCondenser', ), ), modules.ModelList( _('JSON Data'), css_classes=('grp-collapse grp-closed',), models=( 'sifter.datasifter.datacondensers.models.DataParser', 'sifter.datasifter.datacondensers.models.DataCondenser', ), ), ] )) self.children.append(modules.ModelList( _('Enhancing Data'), column=1, collapsible=True, css_classes=('grp-collapse grp-closed',), models=( 'inspections.models.InspectionStep', 'inspections.models.Inspection', 'lab.procedures.models.Procedure', ), )) self.children.append(modules.ModelList( _('Storing Data'), column=1, css_classes=('grp-collapse grp-closed',), models=( 'warehouses.models.Warehouse', 'warehouses.models.Collection', ), )) self.children.append(modules.ModelList( _('Distilling Data'), column=1, css_classes=('grp-collapse grp-closed',), models=( 'categories.models.Category', 'distilleries.models.Distillery', ), )) self.children.append(modules.ModelList( _('Investigating Data'), column=1, css_classes=('grp-collapse grp-closed',), models=( 'contexts.models.Context', ), )) self.children.append(modules.ModelList( _('Configuring Alerts'), column=1, css_classes=('grp-collapse grp-closed',), models=( 'monitors.models.Monitor', 'watchdogs.models.Watchdog', 'watchdogs.models.Muzzle', ), )) self.children.append(modules.ModelList( _('Manage Alerts'), column=2, collapsible=False, models=( 'alerts.models.Alert', ), )) self.children.append(modules.ModelList( _('Manage Mail'), column=2, collapsible=False, models=( 'django_mailbox.models.Mailbox', 'django_mailbox.models.Message', 'django_mailbox.models.MessageAttachment', ), )) self.children.append(modules.ModelList( _('People and Permissions'), column=2, collapsible=False, models=( 'appusers.models.AppUser', 'django.contrib.auth.models.Group', ), )) self.children.append(modules.ModelList( _('Records'), column=2, collapsible=False, models=( 'responder.dispatches.models.Dispatch', 'aggregator.invoices.models.Invoice', 'ambassador.stamps.models.Stamp', 'aggregator.streams.models.Stream', ), )) self.children.append(modules.Group( _('App Configurations'), column=2, collapsible=True, css_classes=('grp-collapse grp-closed',), children=[ modules.ModelList( _('Passports & Visas'), css_classes=('grp-collapse grp-open',), models=( 'ambassador.passports.models.Passport', 'ambassador.visas.models.Visa', ), ), modules.ModelList( _('Alert Response'), css_classes=('grp-collapse grp-open',), models=( 'responder.actions.models.Action', 'responder.couriers.models.Courier', 'responder.destinations.models.Destination', ), ), modules.ModelList( _('Data Collection'), css_classes=('grp-collapse grp-open',), models=( 'aggregator.pipes.models.Pipe', 'aggregator.plumbers.models.Plumber', 'aggregator.reservoirs.models.Reservoir', ), ), modules.ModelList( _('Data Enhancement'), css_classes=('grp-collapse grp-open',), models=( 'lab.procedures.models.Protocol', ), ), modules.ModelList( _('Push Notifications'), css_classes=('grp-collapse grp-open',), models=( 'constance.*', ), ), ] )) # self.children.append(modules.AppList( # _('App Configurations'), # collapsible=True, # column=2, # css_classes=('grp-collapse grp-closed',), # exclude=( # 'django.contrib.*', # 'alerts.*', # 'appusers.*', # 'django_mailbox.models.Message*' # ), # )) self.children.append(modules.RecentActions( _('Recent Actions'), column=3, collapsible=False, limit=3, )) self.children.append(modules.LinkList( _('Support'), column=3, children=[ { 'title': _('Cyphon Documentation'), 'url': 'https://cyphon.readthedocs.io/', 'external': True, }, ] )) self.children.append(modules.Feed( _('Latest Cyphon News'), feed_url='https://www.cyphon.io/blog?format=rss&utm_source=admin', column=3, limit=3, ))
def init_with_context(self, context): site_name = get_admin_site_name(context) self.children.append(modules.LinkList( title=_('Quick Links'), layout='inline', column=1, collapsible=True, css_classes=('collapse closed',), children=( { 'title': _('Return to site'), 'url': '/', }, { 'title': _('Change password'), 'url': reverse('admin:password_change'), }, { 'title': _('Log out'), 'url': reverse('admin:logout') }, ) )) # append a group for "Administration" self.children.append(modules.Group( _('Administration'), column=1, collapsible=True, children = [ modules.AppList( _('Administration'), column=1, collapsible=False, models=('django.contrib.*','registration','accounts'), ), ] )) # append an app list module for "Applications" self.children.append(modules.AppList( title="OpenEats2 Applications", collapsible=True, column=1, models=('recipe*',), )) # append an app list module for "Administration" self.children.append(modules.AppList( _('Third Party Applications'), column=1, collapsible=True, exclude=('django.contrib.*','openeats.*','recipe*',) )) # append a recent actions module self.children.append(modules.RecentActions( _('Recent Actions'), limit=5, collapsible=False, column=2, )) # append another link list module for "support". self.children.append(modules.LinkList( _('Support'), column=2, children=[ { 'title': _('OpenEats Forum'), 'url': 'http://oe2.openeats.org/forum/', 'external': True, }, { 'title': _('Django documentation'), 'url': 'http://docs.djangoproject.com/', 'external': True, }, { 'title': _('Django "django-users" mailing list'), 'url': 'http://groups.google.com/group/django-users', 'external': True, }, ] )) # append a feed module self.children.append(modules.Feed( _('Latest OpenEats2 News'), column=2, feed_url='http://oe2.openeats.org/blog/feed/latest', limit=5 ))
def init_with_context(self, context): site_name = get_admin_site_name(context) self.children.append( modules.Group( _('Administration'), column=1, collapsible=True, children=[ modules.ModelList( _('Authentication and Authorization'), column=1, collapsible=False, models=('django.contrib.auth.*', ), ), modules.ModelList( _('Redirects'), column=1, collapsible=False, # css_classes=('collapse closed',), models=('django.contrib.redirects.models.*', ), ), modules.ModelList( _('Sites'), column=1, collapsible=False, # css_classes=('collapse closed',), models=('django.contrib.sites.models.*', ), ) ])) #Home Page part self.children.append( modules.Group( _('Home Page'), column=1, collapsible=True, children=[ modules.ModelList( _('Home'), column=1, collapsible=False, models=('home.models.*', ), ), modules.ModelList( _('Bloglets'), column=1, collapsible=False, # css_classes=('collapse closed',), models=('bloglets.models.*', ), ), modules.ModelList( _('quickpages'), column=1, collapsible=False, # css_classes=('collapse closed',), models=('quickpages.*', ), ) ])) #Orders and Customers part self.children.append( modules.Group( _('Orders and Customers'), column=1, collapsible=True, children=[ modules.ModelList( _('Customers'), column=1, collapsible=False, models=('customers.models.*', ), ), modules.ModelList( _('Orders'), column=1, collapsible=False, # css_classes=('collapse closed',), models=('orders.models.*', ), ), ])) #Categories and products self.children.append( modules.Group(_('Categories and products'), column=1, collapsible=True, children=[ modules.ModelList( _('Products'), column=1, collapsible=False, models=('products.models.*', ), ), ])) #Other Applications part self.children.append( modules.Group( _('Other Application'), column=1, collapsible=True, children=[ modules.ModelList( _('CA tax'), column=1, collapsible=False, models=('catax.models.*', ), ), modules.ModelList( _('Quotes'), column=1, collapsible=False, models=('quotes.models.*', ), ), modules.ModelList( _('SQL Web Shell'), column=1, collapsible=False, models=('sqls.models.*', ), ), modules.ModelList( _('Python Web Shell'), column=1, collapsible=False, models=('webshell.models.*', ), ), modules.ModelList( _('Email Extras (GPG)'), column=1, collapsible=False, models=('email_extras.models.*', ), ), #modules.ModelList( # _('social_auth'), # column=1, # collapsible=False, # models=('social_auth.*',), #), modules.ModelList( _('Social Auth'), column=1, collapsible=False, models=('social.apps.django_app.default.*', ), ), modules.ModelList( _('Taggit'), column=1, collapsible=False, models=('taggit.models.*', ), ), #Obdjects models moved to Quickpages and its showing as quick snippets # modules.ModelList( # _('Obdjects'), # column=1, # collapsible=False, # models=('obdjects.models.*',), # ), ])) # Media / File Management - Grappelli's Filebrowser. self.children.append( modules.LinkList(_('Media Management'), column=2, children=[ { 'title': _('FileBrowser'), 'url': '/admin/filebrowser/browse/', 'external': False, }, ])) # Django IDE self.children.append( modules.LinkList(_('Django IDE'), column=2, children=[ { 'title': _('DjangoIDE'), 'url': '/djide/', 'external': False, }, ])) # append a link list module for Imports / CSV Imports self.children.append( modules.LinkList(_('Imports'), column=2, children=[ { 'title': _('CSVImport'), 'url': '/admin/csvimport/', 'external': False, }, ])) # Utils self.children.append( modules.LinkList(_('Utils'), column=2, children=[ { 'title': _('URLs'), 'url': '/utils/urls/', 'external': False, }, { 'title': _('Clear Cache'), 'url': '/utils/clearcache/', 'external': False, }, { 'title': _('Collect static files'), 'url': '/utils/collect_static/', 'external': False, }, ])) # Orders module utils self.children.append( modules.LinkList(_('Orders Utils'), column=2, children=[ { 'title': _('Your current session'), 'url': '/session/', 'external': False, }, { 'title': _('Legacy order admin grid'), 'url': '/admin_order_grid/', 'external': False, }, ])) # append another link list module for "support". # self.children.append(modules.LinkList( # _('Support'), # column=2, # children=[ # { # 'title': _('Django Documentation'), # 'url': 'http://docs.djangoproject.com/', # 'external': True, # }, # { # 'title': _('Grappelli Documentation'), # 'url': 'http://packages.python.org/django-grappelli/', # 'external': True, # }, # { # 'title': _('Grappelli Google-Code'), # 'url': 'http://code.google.com/p/django-grappelli/', # 'external': True, # }, # ] # )) # append a feed module self.children.append( modules.Feed(_('Latest Django News'), column=2, feed_url='http://www.djangoproject.com/rss/weblog/', limit=15)) # append a recent actions module self.children.append( modules.RecentActions( _('Recent Actions'), limit=20, collapsible=False, column=3, ))
def init_with_context(self, context): site_name = get_admin_site_name(context) # append an app list module for "Administration" self.children.append( modules.AppList( _('Administration'), collapsible=True, column=1, css_classes=('collapse closed', ), models=('django.contrib.*', ), )) # append an app list module for "Applications" self.children.append( modules.AppList( _('Applications'), collapsible=True, column=1, css_classes=('collapse closed', ), exclude=('django.contrib.*', ), )) # append another link list module for "support". self.children.append( modules.LinkList(_('Media Management'), column=2, children=[ { 'title': _('FileBrowser'), 'url': '/admin/filebrowser/browse/', 'external': False, }, ])) # append a recent actions module self.children.append( modules.RecentActions( _('Recent Actions'), limit=10, collapsible=False, column=2, )) # append another link list module for "support". self.children.append( modules.LinkList( _('Support'), column=3, children=[ { 'title': _('Django Documentation'), 'url': 'http://docs.djangoproject.com/', 'external': True, }, { 'title': _('Grappelli Documentation'), 'url': 'http://packages.python.org/django-grappelli/', 'external': True, }, ])) # append a feed module self.children.append( modules.Feed(_('Latest Django News'), column=3, feed_url='http://www.djangoproject.com/rss/weblog/', limit=5))
def init_with_context(self, context): site_name = get_admin_site_name(context) # append a group for "Administration" & "Applications" self.children.append( modules.Group(_('Group: Administration & Applications'), column=1, collapsible=True, children=[ modules.AppList( _('Administration'), column=1, collapsible=False, models=('django.contrib.*', ), ), modules.AppList( _('Applications'), column=1, css_classes=('collapse closed', ), exclude=('django.contrib.*', ), ) ])) # append an app list module for "Applications" self.children.append( modules.AppList( _('AppList: Applications'), collapsible=False, column=1, #css_classes=('collapse closed',), exclude=('django.contrib.*', ), )) # append an app list module for "Administration" self.children.append( modules.ModelList( _('ModelList: Administration'), column=1, collapsible=False, models=('django.contrib.*', ), )) # append another link list module for "support". self.children.append( modules.LinkList( _('Support'), column=2, children=[ { 'title': _('Django Documentation'), 'url': 'http://docs.djangoproject.com/', 'external': True, }, { 'title': _('Grappelli Documentation'), 'url': 'http://packages.python.org/django-grappelli/', 'external': True, }, { 'title': _('Grappelli Google-Code'), 'url': 'http://code.google.com/p/django-grappelli/', 'external': True, }, ])) # append a feed module self.children.append( modules.Feed( _('UB Public Service'), column=2, feed_url= 'http://www.buffalo.edu/news/distributed/publicservice.rss', limit=5)) # append a recent actions module self.children.append( modules.RecentActions( _('Recent Actions'), limit=5, collapsible=False, column=3, ))