Ignore:
Timestamp:
9 Jun 2011, 16:57:32 (14 years ago)
Author:
Henrik Bettermann
Message:

Add message attribute to log workflow transitions.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/applicants
Files:
2 edited

Legend:

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

    r6301 r6304  
    2222import grok
    2323from grok import index
     24from datetime import datetime
    2425from zope.component.interfaces import IFactory
    2526from zope.interface import implementedBy
     
    4950        #Initialize workflow state...
    5051        IWorkflowInfo(self).fireTransition('init')
     52        timestamp = datetime.now().strftime("%d/%m/%Y %H:%M")
     53        self.messages = u'%s - Initialize application' % timestamp
    5154
    5255# Set all attributes of Applicant required in IApplicant as field
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/interfaces.py

    r6302 r6304  
    286286    state, depending on use-case.
    287287    """
     288    messages = Attribute('Workflow transitions with date of transition.')
     289
    288290    reg_no = schema.TextLine(
    289291        title = u'JAMB Registration Number',
Note: See TracChangeset for help on using the changeset viewer.