Changeset 9637 for main/waeup.kofa/trunk/src/waeup/kofa/browser
- Timestamp:
- 15 Nov 2012, 14:25:56 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/browser
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/breadcrumbs.py
r9217 r9637 30 30 IUniversity, IFacultiesContainer, IUsersContainer, IDataCenter, IFaculty, 31 31 IDepartment, ICourse, ICertificate, ICoursesContainer, ICertificateCourse, 32 ICertificatesContainer ,32 ICertificatesContainer 33 33 ) 34 from waeup.kofa.reports import IReportsContainer 34 35 35 36 class Breadcrumb(grok.Adapter): … … 157 158 grok.context(IDataCenter) 158 159 title = _(u'Data Center') 160 parent_viewname = 'administration' 161 162 class ReportsBreadcrumb(Breadcrumb): 163 """A breadcrumb for reports. 164 """ 165 grok.context(IReportsContainer) 166 title = _(u'Reports') 159 167 parent_viewname = 'administration' 160 168 -
main/waeup.kofa/trunk/src/waeup/kofa/browser/reports.py
r9633 r9637 22 22 from zope.location.location import located 23 23 from waeup.kofa.interfaces import IJobManager 24 from waeup.kofa.interfaces import MessageFactory as _ 24 25 from waeup.kofa.browser.layout import KofaPage 25 26 from waeup.kofa.browser.resources import tabs … … 35 36 grok.context(IReportsContainer) 36 37 grok.require('waeup.manageReports') 38 label = _('Reports') 37 39 38 40 def _report_url(self, job_id): … … 86 88 grok.context(IReportsContainer) 87 89 grok.require('waeup.manageReports') 90 label = _('Create report') 88 91 89 92 def update(self, START_GENERATOR=None, generator=None): -
main/waeup.kofa/trunk/src/waeup/kofa/browser/viewlets.py
r9590 r9637 324 324 """A link to portal configuration. 325 325 """ 326 grok.order( 2)326 grok.order(1) 327 327 grok.require('waeup.managePortalConfiguration') 328 328 … … 347 347 link = u'datacenter' 348 348 text = _(u'Data Center') 349 350 class ManageReports(ManageLink): 351 """A link to reports, placed in upper left box. 352 """ 353 grok.order(4) 354 grok.require('waeup.manageReports') 355 356 link = u'reports' 357 text = _(u'Reports') 349 358 350 359 class MyPreferences(ManageLink): … … 658 667 link_title = _('Data Center') 659 668 target_viewname = 'datacenter' 669 670 class AdminTaskReports(AdminTask): 671 """Entry on administration page that link to datacenter. 672 """ 673 grok.order(3) 674 grok.require('waeup.manageReports') 675 676 link_title = _('Reports') 677 target_viewname = 'reports' 660 678 661 679 # The SubobjectLister and its viewlets below are not used in Kofa.
Note: See TracChangeset for help on using the changeset viewer.