Changeset 4709 for waeup/branches


Ignore:
Timestamp:
7 Jan 2010, 22:36:29 (15 years ago)
Author:
uli
Message:

Add 'Add department' button on faculty index pages.

File:
1 edited

Legend:

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

    r4708 r4709  
    209209    addlink_text = 'Add faculty'
    210210
     211class AddDepartmentsAction(AddAction):
     212    grok.context(IFaculty)
     213    grok.view(FacultyPage)
     214    grok.order(4)
     215    grok.template('addaction')
     216    grok.require('waeup.manageUniversity')
     217
     218    addview_name = 'add'
     219    addlink_text = 'Add department'
    211220
    212221#
Note: See TracChangeset for help on using the changeset viewer.