Changeset 7321 for main/waeup.sirp/trunk/src/waeup/sirp/browser/viewlets.py
- Timestamp:
- 10 Dec 2011, 06:15:17 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/viewlets.py
r7243 r7321 28 28 IFacultyContainer, IFaculty, IDepartment, ICourse, ICertificate, 29 29 ICertificateCourse, IBreadcrumbContainer, IUniversity, IUsersContainer) 30 from waeup.sirp.interfaces import (I WAeUPObject, IWAeUPXMLExporter,31 I WAeUPXMLImporter, IDataCenter, IUserAccount)32 from waeup.sirp.browser.layout import WAeUPPage, default_primary_nav_template30 from waeup.sirp.interfaces import (ISIRPObject, ISIRPXMLExporter, 31 ISIRPXMLImporter, IDataCenter, IUserAccount) 32 from waeup.sirp.browser.layout import SIRPPage, default_primary_nav_template 33 33 from waeup.sirp.utils.helpers import get_user_account 34 34 35 35 grok.templatedir('templates') 36 grok.context(I WAeUPObject) # Make IWAeUPObject the default context36 grok.context(ISIRPObject) # Make ISIRPObject the default context 37 37 38 38 class LeftSidebar(grok.ViewletManager): … … 74 74 """ 75 75 grok.baseclass() 76 grok.context(I WAeUPObject)76 grok.context(ISIRPObject) 77 77 grok.viewletmanager(ActionBar) 78 78 icon = 'actionicon_modify.png' # File must exist in static/ … … 185 185 186 186 class BreadCrumbs(grok.Viewlet): 187 grok.context(I WAeUPObject)187 grok.context(ISIRPObject) 188 188 grok.viewletmanager(BreadCrumbManager) 189 189 grok.order(1) … … 227 227 grok.baseclass() 228 228 grok.viewletmanager(LeftSidebar) 229 grok.context(I WAeUPObject)229 grok.context(ISIRPObject) 230 230 grok.order(5) 231 231 grok.require('waeup.manageUniversity') … … 279 279 """ 280 280 grok.viewletmanager(LeftSidebar) 281 grok.context(I WAeUPObject)281 grok.context(ISIRPObject) 282 282 grok.view(Interface) 283 283 grok.order(2) … … 313 313 """ 314 314 grok.viewletmanager(LeftSidebar) 315 grok.context(I WAeUPObject)315 grok.context(ISIRPObject) 316 316 grok.view(Interface) 317 317 grok.order(5) … … 519 519 class BrowseActionButton(ActionButton): 520 520 grok.baseclass() 521 grok.context(I WAeUPObject)521 grok.context(ISIRPObject) 522 522 grok.template('actionbutton') 523 523 grok.viewletmanager(ActionBar)
Note: See TracChangeset for help on using the changeset viewer.