Changeset 7600


Ignore:
Timestamp:
8 Feb 2012, 07:00:54 (13 years ago)
Author:
Henrik Bettermann
Message:

Use SIRPDisplayFormPage with default pagetemplate for courses.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/browser
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py

    r7490 r7600  
    490490    @property
    491491    def getLocalRoles(self):
    492         #import pdb; pdb.set_trace()
    493492        local_roles = get_user_account(self.request).getLocalRoles()
    494493        local_roles_userfriendly = {}
     
    15851584# Courses pages
    15861585#
    1587 class CoursePage(SIRPPage):
     1586class CoursePage(SIRPDisplayFormPage):
    15881587    """Course index page.
    15891588    """
     
    15921591    grok.require('waeup.viewAcademics')
    15931592    pnav = 1
    1594     #form_fields = grok.AutoFields(ICourse)
     1593    form_fields = grok.AutoFields(ICourse)
    15951594
    15961595    @property
     
    16801679        datatable.need()
    16811680        return super(CertificateManageFormPage, self).update()
    1682 
    1683     form_fields = grok.AutoFields(ICertificate)
    16841681
    16851682    @action('Save', style='primary')
Note: See TracChangeset for help on using the changeset viewer.