Changeset 4773
- Timestamp:
- 9 Jan 2010, 18:22:34 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-layout/src/waeup/browser/viewlets.py
r4769 r4773 27 27 pass 28 28 29 # 30 # General viewlets (for more than one page/context) 31 # 32 29 33 class BreadCrumbs(grok.Viewlet): 30 34 grok.context(IWAeUPObject) … … 43 47 ) 44 48 49 class ExportXMLAction(grok.Viewlet): 50 grok.viewletmanager(ActionBar) 51 #grok.view(Index) 52 grok.order(98) 53 grok.require('waeup.manageUniversity') 54 55 class ImportXMLAction(grok.Viewlet): 56 grok.viewletmanager(ActionBar) 57 #grok.view(Index) 58 grok.order(99) 59 grok.require('waeup.manageUniversity') 60 61 def update(self): 62 # We cannot simply replace local sites. 63 self.can_import = not ISite.providedBy(self.context) 64 65 45 66 # 46 67 # waeup.app.University viewlets...
Note: See TracChangeset for help on using the changeset viewer.