- Timestamp:
- 25 Nov 2014, 08:19:54 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/documents/document.py
r12032 r12053 76 76 try: 77 77 TRANSLATED_STATES = getUtility(IDocumentsUtils).TRANSLATED_STATES 78 ts = TRANSLATED_STATES[self.state] 79 return ts 78 return TRANSLATED_STATES[self.state] 80 79 except KeyError: 81 80 return 81 82 @property 83 def classname(self): 84 return self.__class__.__name__ 85 86 @property 87 def formatted_transition_date(self): 88 try: 89 return self.last_transition_date.strftime('%Y-%m-%d %H:%M:%S') 90 except AttributeError: 91 return 92 82 93 83 94 Document = attrs_to_fields(Document)
Note: See TracChangeset for help on using the changeset viewer.