Ignore:
Timestamp:
3 Jul 2016, 14:09:30 (8 years ago)
Author:
Henrik Bettermann
Message:

Add referee entry components to be used for sending emails to referees elected by applicants.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/interfaces.py

    r13886 r14011  
    273273    """
    274274
     275class IRefereeEntry(Interface):
     276    """A referee entry.
     277    """
     278    name = schema.TextLine(
     279        title = _(u'Name'),
     280        required = True,
     281        description = _(u'Name'),
     282        )
     283    email = schema.ASCIILine(
     284        title = _(u'Email Address'),
     285        default = None,
     286        required = True,
     287        constraint=validate_email,
     288        description = _(u'Email Address'),
     289        )
     290
     291class IRefereeEntryField(IObject):
     292    """A zope.schema-like field for usage in interfaces.
     293
     294    Marker interface to distuingish result entries from ordinary
     295    object fields. Needed for registration of widgets.
     296    """
     297
    275298class IKofaUtils(Interface):
    276299    """A collection of methods which are subject to customization.
     
    792815            ),
    793816        required = False,
    794         default = [],
     817        defaultFactory=list,
    795818        )
    796819
Note: See TracChangeset for help on using the changeset viewer.