Ignore:
Timestamp:
31 Jul 2009, 10:02:12 (15 years ago)
Author:
uli
Message:
  • Add add view for certificates in departments.
  • Add add action for the same.
File:
1 edited

Legend:

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

    r4490 r4498  
    3131class AddCourse(grok.View):
    3232    """Admin add form wrapper for waeup objects.
     33
     34    We need different named add views for departments as there are
     35    different things to add.
    3336    """
    3437    grok.context(IWAeUPObject)
    3538    grok.template('master')
    36    
     39
     40class AddCertificate(grok.View):
     41    """Admin add form wrapper for waeup objects.
     42   
     43    We need different named add views for departments as there are
     44    different things to add.
     45    """
     46    grok.context(IWAeUPObject)
     47    grok.template('master')
     48
    3749class ExportXML(grok.View):
    3850    """Deliver an XML representation of the context.
     
    219231    addlink_text = 'Add course'
    220232
     233class AddCertificateAction(AddAction):
     234    grok.context(IDepartment)
     235    grok.template('addaction')
     236
     237    addview_name = 'addcertificate'
     238    addlink_text = 'Add certificate'
     239
     240   
    221241class ManageUniversityAction(grok.Viewlet):
    222242    grok.viewletmanager(ActionBar)
Note: See TracChangeset for help on using the changeset viewer.