Changeset 13935 for main/waeup.kofa/trunk/src/waeup/kofa/browser
- Timestamp:
- 14 Jun 2016, 01:38:12 (9 years ago)
- Location:
- main/waeup.kofa/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk
- Property svn:mergeinfo changed
/main/waeup.kofa/branches/uli-scores-upload merged: 13913-13934
- Property svn:mergeinfo changed
-
main/waeup.kofa/trunk/src/waeup/kofa
- Property svn:mergeinfo changed
/main/waeup.kofa/branches/uli-scores-upload/src/waeup/kofa merged: 13913-13934
- Property svn:mergeinfo changed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/viewlets.py
r13908 r13935 18 18 import grok 19 19 from urllib import urlencode 20 from zope.component import getMultiAdapter, queryAdapter, getUtility 20 21 from zope.i18n import translate 21 from zope.component import getMultiAdapter, queryAdapter, getUtility22 22 from zope.interface import Interface 23 23 from zope.location.interfaces import ISite 24 24 from zope.traversing.browser import absoluteURL 25 from waeup.kofa.browser.interfaces import ( 26 IFacultiesContainer, IFaculty, IDepartment, ICourse, ICertificate, 27 ICertificateCourse, IBreadcrumbContainer, IUniversity, IUsersContainer) 28 from waeup.kofa.browser.layout import KofaPage, default_primary_nav_template 25 29 from waeup.kofa.browser.pages import ( 26 30 UniversityPage, FacultiesContainerPage, DatacenterPage, FacultyPage, 27 31 DepartmentPage, CoursePage, CertificatePage, CertificateCoursePage, 28 32 UsersContainerPage, UserManageFormPage, DatacenterImportStep1) 29 from waeup.kofa.students.browser import EditScoresPage 30 from waeup.kofa.browser.interfaces import ( 31 IFacultiesContainer, IFaculty, IDepartment, ICourse, ICertificate, 32 ICertificateCourse, IBreadcrumbContainer, IUniversity, IUsersContainer) 33 from waeup.kofa.interfaces import MessageFactory as _ 33 34 from waeup.kofa.interfaces import ( 34 35 IKofaUtils, IKofaObject, 35 36 IDataCenter, IUserAccount) 36 from waeup.kofa.browser.layout import KofaPage, default_primary_nav_template37 37 from waeup.kofa.utils.helpers import get_user_account 38 38 39 from waeup.kofa.interfaces import MessageFactory as _40 39 41 40 grok.templatedir('templates') 42 41 grok.context(IKofaObject) # Make IKofaObject the default context 43 42 43 44 44 class ManageSidebar(grok.ViewletManager): 45 45 grok.name('left_manage') 46 46 47 47 48 class BreadCrumbManager(grok.ViewletManager): 48 49 grok.name('breadcrumbs') 49 50 51 50 52 class LanguageManager(grok.ViewletManager): 51 53 grok.name('languages') 52 54 55 53 56 class ActionBar(grok.ViewletManager): 54 57 grok.name('actionbar') 55 58 59 56 60 class AdministrationTasks(grok.ViewletManager): 57 61 grok.name('admintasks') 58 62 63 59 64 class WidgetsSlot(grok.ViewletManager): 60 65 grok.name('widgets') 61 66 67 62 68 class SourcesLeft(grok.ViewletManager): 63 69 grok.name('sources_left') 70 64 71 65 72 class SourcesRight(grok.ViewletManager): … … 555 562 grok.order(4) 556 563 557 class DownloadCSVFileActionButton(ManageActionButton):558 """ 'Download csv file' button for courses.559 """560 grok.context(ICourse)561 grok.view(EditScoresPage)562 grok.name('downloadcsv')563 grok.require('waeup.editScores')564 icon = 'actionicon_down.png'565 text = _('Download editable tickets')566 target = 'download_scores'567 grok.order(1)568 569 class DownloadTicketOverviewActionButton(ManageActionButton):570 """ 'Download ticket overview' button for courses.571 """572 grok.context(ICourse)573 grok.view(EditScoresPage)574 grok.name('coursetickets')575 grok.require('waeup.editScores')576 icon = 'actionicon_pdf.png'577 text = _('Download pdf file')578 target = 'coursetickets.pdf'579 grok.order(2)580 564 581 565 class ManageCertificateActionButton(ManageActionButton):
Note: See TracChangeset for help on using the changeset viewer.