Ignore:
Timestamp:
9 Jan 2010, 18:21:58 (15 years ago)
Author:
uli
Message:

Remove moved/unused viewlets/viewlet managers.

File:
1 edited

Legend:

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

    r4768 r4772  
    182182    grok.viewletmanager(MainArea)
    183183    grok.view(ImportXML)
    184    
    185 
    186 class ActionBar(grok.ViewletManager):
    187     grok.name('actionbar')
    188     pass
    189 
    190 
    191 class AddAction(grok.Viewlet):
    192     grok.viewletmanager(ActionBar)
    193     grok.view(Index)
    194     grok.context(IFaculty)
    195     grok.order(4)
    196     grok.template('addaction')
    197     grok.require('waeup.manageUniversity')
    198 
    199     addview_name = 'add'
    200     addlink_text = 'Add department'
    201 
    202     def getTargetURL(self):
    203         return '%s/@@%s' % (self.view.url(self.view.context), self.addview_name)
    204 
    205 class AddFacultyAction(AddAction):
    206     grok.context(IFacultyContainer)
    207     grok.template('addaction')
    208 
    209     addview_name = 'add'
    210     addlink_text = 'Add faculty'
    211 
    212 class AddCourseAction(AddAction):
    213     grok.context(IDepartment)
    214     grok.template('addaction')
    215 
    216     addview_name = 'addcourse'
    217     addlink_text = 'Add course'
    218 
    219 class AddCertificateAction(AddAction):
    220     grok.context(IDepartment)
    221     grok.template('addaction')
    222 
    223     addview_name = 'addcertificate'
    224     addlink_text = 'Add certificate'
    225 
    226 class AddCertificateCourseAction(AddAction):
    227     grok.context(ICertificate)
    228     grok.template('addaction')
    229 
    230     addview_name = 'addcertificatecourse'
    231     addlink_text = 'Add course'
    232 
    233    
    234 class ExportXMLAction(grok.Viewlet):
    235     grok.viewletmanager(ActionBar)
    236     grok.view(Index)
    237     grok.order(98)
    238     grok.require('waeup.manageUniversity')
    239 
    240 class ImportXMLAction(grok.Viewlet):
    241     grok.viewletmanager(ActionBar)
    242     grok.view(Index)
    243     grok.order(99)
    244     grok.require('waeup.manageUniversity')
    245 
    246     def update(self):
    247         # We cannot simply replace local sites.
    248         self.can_import = not ISite.providedBy(self.context)
Note: See TracChangeset for help on using the changeset viewer.