Changeset 10202 for main


Ignore:
Timestamp:
22 May 2013, 19:00:45 (12 years ago)
Author:
Henrik Bettermann
Message:

Omit custom fields and ratio on certificate pages.

File:
1 edited

Legend:

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

    r9709 r10202  
    1919from waeup.kofa.browser.pages import (
    2020    SessionConfigurationAddFormPage, SessionConfigurationManageFormPage,
    21     LoginPage)
     21    LoginPage, CertificatePage, CertificateManageFormPage)
     22from waeup.kofa.university.interfaces import ICertificate
    2223from waeup.uniben.interfaces import (
    2324    ICustomSessionConfiguration, ICustomSessionConfigurationAdd)
     
    3738    def _comment(self, student):
    3839        return None
     40
     41class CustomCertificatePage(CertificatePage):
     42    """Index page for certificates.
     43    """
     44    form_fields = grok.AutoFields(ICertificate).omit(
     45        'ratio',
     46        'custom_textline_1', 'custom_textline_2',
     47        'custom_float_1', 'custom_float_2')
     48
     49class CustomCertificateManageFormPage(CertificateManageFormPage):
     50    """Manage the properties of a `Certificate` instance.
     51    """
     52    form_fields = grok.AutoFields(ICertificate).omit(
     53        'ratio',
     54        'custom_textline_1', 'custom_textline_2',
     55        'custom_float_1', 'custom_float_2')
Note: See TracChangeset for help on using the changeset viewer.