- Timestamp:
- 11 Jun 2016, 09:23:46 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/uli-scores-upload/src/waeup/kofa/browser/viewlets.py
r13913 r13914 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.browser.interfaces import ( 30 IFacultiesContainer, IFaculty, IDepartment, ICourse, ICertificate, 31 ICertificateCourse, IBreadcrumbContainer, IUniversity, IUsersContainer) 33 from waeup.kofa.interfaces import MessageFactory as _ 32 34 from waeup.kofa.interfaces import ( 33 35 IKofaUtils, IKofaObject, 34 36 IDataCenter, IUserAccount) 35 from waeup.kofa.browser.layout import KofaPage, default_primary_nav_template36 37 from waeup.kofa.utils.helpers import get_user_account 37 38 38 from waeup.kofa.interfaces import MessageFactory as _39 39 40 40 grok.templatedir('templates') 41 41 grok.context(IKofaObject) # Make IKofaObject the default context 42 42 43 43 44 class ManageSidebar(grok.ViewletManager): 44 45 grok.name('left_manage') 45 46 47 46 48 class BreadCrumbManager(grok.ViewletManager): 47 49 grok.name('breadcrumbs') 48 50 51 49 52 class LanguageManager(grok.ViewletManager): 50 53 grok.name('languages') 51 54 55 52 56 class ActionBar(grok.ViewletManager): 53 57 grok.name('actionbar') 54 58 59 55 60 class AdministrationTasks(grok.ViewletManager): 56 61 grok.name('admintasks') 57 62 63 58 64 class WidgetsSlot(grok.ViewletManager): 59 65 grok.name('widgets') 60 66 67 61 68 class SourcesLeft(grok.ViewletManager): 62 69 grok.name('sources_left') 70 63 71 64 72 class SourcesRight(grok.ViewletManager):
Note: See TracChangeset for help on using the changeset viewer.