Ignore:
Timestamp:
13 May 2011, 18:03:27 (14 years ago)
Author:
uli
Message:

Use new field-property setter with real class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/container.py

    r6070 r6072  
    2828    IApplicantsContainerProvider,
    2929    )
    30 from zope.schema.fieldproperty import FieldProperty   
     30from waeup.sirp.utils.helpers import attrs_to_fields
    3131
    3232class ApplicantsContainer(grok.Container):
     
    3636    #grok.provides(IApplicantsContainer)
    3737
    38     title = u'Simple applicants container'
    39     description = u'Simple container for regular applicants'
    40     startdate = None
    41     enddate = None
    42     strict_deadline = True
    43     provider = None
    44     code = None
    45    
    4638    def archive(self, app_ids=None):
    4739        """Create on-dist archive of applicants stored in this term.
     
    7567        """
    7668        raise NotImplemented()
    77        
     69
     70ApplicantsContainer = attrs_to_fields(ApplicantsContainer)
     71   
    7872class ApplicantsContainerProvider(grok.GlobalUtility):
    7973    """A utility that provides basic applicants containers.
Note: See TracChangeset for help on using the changeset viewer.