def init_with_context(self, context): self.children.append(modules.Feed( _('Latest Django News'), feed_url='http://www.djangoproject.com/rss/weblog/', limit=5, column=0, order=0 ))
def init_with_context(self, context): self.children.append( modules.Feed(_('Latest News'), feed_url='http://www.djangoproject.com/rss/weblog/', limit=5, column=0, order=0)) self.children.append( modules.RecentActions(_('Recent Actions'), 10, column=0, order=0)) self.children.append(JobModule(column=1))
def init_with_context(self, context): self.available_children.append( google_analytics.GoogleAnalyticsVisitorsTotals) self.available_children.append( google_analytics.GoogleAnalyticsVisitorsChart) self.available_children.append( google_analytics.GoogleAnalyticsPeriodVisitors) ########################################################################################### self.children.append( modules.RecentActions(_('Recent Actions'), 10, column=0, order=0)) ############################################################################################# self.children.append( modules.ModelList(_('Models'), exclude=('auth.*', ), column=0, order=0)) ############################################################################################# self.children.append( modules.AppList(_('Applications'), exclude=('auth.*', ), column=0, order=0)) ############################################################################################# self.available_children.append(modules.LinkList) 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, }, ], column=0, order=0)) ############################################################################################# self.children.append( modules.Feed(_('Latest Django News'), feed_url='http://www.djangoproject.com/rss/weblog/', limit=5, column=0, order=0)) import sys sys.stderr.write("hanbi ya nori ya ssaki khayli ba2alinahuj")
def init_with_context(self, context): self.init_with_context_called = True self.available_children.append(modules.LinkList) self.available_children.append(modules.Feed) # append a recent actions module self.children.append( modules.RecentActions('Recent Actions', 10, column=0, order=1)) # append a feed module self.children.append( modules.Feed('Latest Django News', feed_url='http://www.djangoproject.com/rss/weblog/', limit=5, column=1, order=1))
def init_with_context(self, context): self.available_children.append(modules.RecentActions) self.available_children.append(modules.RecentActions( _('Recent Actions'), limit=10, column=0, order=1 )) self.available_children.append(modules.Feed) self.available_children.append(modules.Feed( _('Latest PyFreebilling News'), feed_url='https://www.pyfreebilling.com/feed', limit=5, column=1, order=1 ))
def init_with_context(self, context): self.available_children.append(modules.LinkList) self.available_children.append(modules.Feed) 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, }, ], column=0, order=0)) # append an app list module for "Applications" self.children.append( modules.AppList(_('Applications'), exclude=('auth.*', ), column=1, order=0)) # append a recent actions module self.children.append( modules.RecentActions(_('Recent Actions'), 10, column=0, order=1)) self.children.append( modules.Feed(_('Latest Django News'), feed_url='http://www.djangoproject.com/rss/weblog/', limit=5, column=1, order=1))
def init_with_context(self, context): self.available_children.append(modules.LinkList) self.available_children.append(modules.Feed) self.available_children.append(google_analytics.GoogleAnalyticsVisitorsTotals) self.available_children.append(google_analytics.GoogleAnalyticsVisitorsChart) self.available_children.append(google_analytics.GoogleAnalyticsPeriodVisitors) 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)], ], column=2, order=0 )) # append an app list module for "Applications" self.children.append(modules.AppList( _('Applications'), exclude=('auth.*',), column=1, order=0 )) # append an app list module for "Administration" self.children.append(modules.AppList( _('Administration'), models=('auth.*',), column=2, order=0 )) # append a recent actions module self.children.append(modules.RecentActions( _('Recent Actions'), 10, column=2, order=1 )) # append a feed module self.children.append(modules.Feed( _('Latest Django News'), feed_url='http://www.djangoproject.com/rss/weblog/', limit=5, column=2, order=1 )) # 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, }, ], column=2, order=1 ))
def init_with_context(self, context): self.available_children.append(modules.LinkList) self.available_children.append(modules.Feed) 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)], ], column=0, order=0, )) # append an app list module for "Applications" self.children.append( modules.AppList(_("Applications"), exclude=("auth.*", ), column=1, order=0)) # append an app list module for "Administration" self.children.append( modules.AppList(_("Administration"), models=("auth.*", ), column=2, order=0)) # append a recent actions module self.children.append( modules.RecentActions(_("Recent Actions"), 10, column=0, order=1)) # append a feed module self.children.append( modules.Feed( _("Latest Django News"), feed_url="http://www.djangoproject.com/rss/weblog/", limit=5, column=1, order=1, )) # 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, }, ], column=2, order=1, ))
def init_with_context(self, context): site_name = get_admin_site_name(context) self.available_children.append(modules.LinkList) self.available_children.append(modules.Feed) # self.available_children.append(google_analytics.GoogleAnalyticsVisitorsTotals) # self.available_children.append(google_analytics.GoogleAnalyticsVisitorsChart) # self.available_children.append(google_analytics.GoogleAnalyticsPeriodVisitors) # 链接列表 self.children.append( modules.LinkList( _('支持列表'), 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, }, { 'title': _('Django irc channel2'), 'url': 'irc://irc.freenode.net/django', 'external': True, }, ], column=2, order=1, layout='stacked', draggable=False, deletable=False, collapsible=True, )) # 快速操作 self.children.append( modules.LinkList( _('快速操作'), layout='inline', draggable=False, deletable=False, collapsible=False, children=[ [_('查看站点'), '/'], [_('修改密码'), reverse('%s:password_change' % site_name)], [_('退出'), reverse('%s:logout' % site_name)], ], column=0, order=0)) # 应用 self.children.append( modules.AppList(_('应用'), exclude=('auth.*', ), column=1, order=0)) # 用户 self.children.append( modules.AppList(_('用户'), model=('auth.*', ), column=2, order=0)) # 模块 self.children.append( modules.ModelList(_('模型'), exclude=('auth.*', ), column=0, order=0)) # 最近管理操作 self.children.append( modules.RecentActions(_('最近操作'), 10, column=0, order=1)) # 展示订阅信息 self.children.append( modules.Feed(_('django订阅信息'), feed_url='http://www.djangoproject.com/rss/weblog', limit=5, column=1, order=1))