Ignore:
Timestamp:
31 Jul 2009, 07:18:46 (15 years ago)
Author:
uli
Message:
  • Add add view for courses in departments.
  • Add add action for departments.
File:
1 edited

Legend:

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

    r4473 r4490  
    2929    grok.template('master')
    3030
     31class AddCourse(grok.View):
     32    """Admin add form wrapper for waeup objects.
     33    """
     34    grok.context(IWAeUPObject)
     35    grok.template('master')
     36   
    3137class ExportXML(grok.View):
    3238    """Deliver an XML representation of the context.
     
    206212    addlink_text = 'Add faculty'
    207213
     214class AddCourseAction(AddAction):
     215    grok.context(IDepartment)
     216    grok.template('addaction')
     217
     218    addview_name = 'addcourse'
     219    addlink_text = 'Add course'
    208220
    209221class ManageUniversityAction(grok.Viewlet):
Note: See TracChangeset for help on using the changeset viewer.