Changeset 13975 for main/waeup.kofa/trunk/src
- Timestamp:
- 22 Jun 2016, 16:55:37 (9 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/interfaces.py
r13972 r13975 656 656 required = False, 657 657 ) 658 659 creation_date = schema.Datetime( 660 title = _(u'Ticket Creation Date'), 661 readonly = False, 662 required = False, 663 ) -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/refereereport.py
r13973 r13975 18 18 import os 19 19 import grok 20 from datetime import datetime 20 21 from zope.component import getUtility, createObject, getAdapter 21 22 from zope.component.interfaces import IFactory … … 40 41 super(ApplicantRefereeReport, self).__init__() 41 42 self.r_id = None 43 self.creation_date = datetime.utcnow() 42 44 return 43 45 -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_refereereport.py
r13973 r13975 20 20 """ 21 21 import unittest 22 from datetime import datetime 22 23 from zope.interface import verify 23 24 from zope.component import createObject … … 58 59 def test_report(self): 59 60 self.assertEqual(self.applicant['my_report'], self.report) 61 self.assertTrue(isinstance(self.report.creation_date, datetime)) 60 62 return 61 63
Note: See TracChangeset for help on using the changeset viewer.