Changeset 4439 for waeup/branches


Ignore:
Timestamp:
27 Jul 2009, 13:38:38 (15 years ago)
Author:
uli
Message:

Add action for XML imports.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-rewrite/src/waeup/viewlets.py

    r4411 r4439  
    226226    grok.require('waeup.manageUniversity')
    227227
     228class ImportXMLAction(grok.Viewlet):
     229    grok.viewletmanager(ActionBar)
     230    grok.view(Index)
     231    grok.order(99)
     232    grok.require('waeup.manageUniversity')
     233
     234    def update(self):
     235        # We cannot simply replace local sites.
     236        self.can_import = not ISite.providedBy(self.context)
    228237
    229238class FormWrapMixin(object):
Note: See TracChangeset for help on using the changeset viewer.