- Timestamp:
- 10 Jan 2010, 01:31:51 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-layout/src/waeup/browser/viewlets.py
r4774 r4778 49 49 ) 50 50 51 class ExportXMLAction(grok.Viewlet): 52 grok.viewletmanager(ActionBar) 53 #grok.view(Index) 54 grok.order(98) 55 grok.require('waeup.manageUniversity') 56 57 class ImportXMLAction(grok.Viewlet): 58 grok.viewletmanager(ActionBar) 59 #grok.view(Index) 60 grok.order(99) 61 grok.require('waeup.manageUniversity') 62 63 def update(self): 64 # We cannot simply replace local sites. 65 self.can_import = not ISite.providedBy(self.context) 51 52 # Problem with circular references. Disabled for now... 53 # class ExportXMLAction(grok.Viewlet): 54 # grok.viewletmanager(ActionBar) 55 # #grok.view(Index) 56 # grok.order(98) 57 # grok.require('waeup.manageUniversity') 58 59 #class ImportXMLAction(grok.Viewlet): 60 # grok.viewletmanager(ActionBar) 61 # #grok.view(Index) 62 # grok.order(99) 63 # grok.require('waeup.manageUniversity') 64 # 65 # def update(self): 66 # # We cannot simply replace local sites. 67 # self.can_import = not ISite.providedBy(self.context) 66 68 67 69 class LeftSidebarLink(grok.Viewlet):
Note: See TracChangeset for help on using the changeset viewer.