Changeset 7254 for main/waeup.sirp/trunk/src/waeup/sirp/applicants
- Timestamp:
- 3 Dec 2011, 05:09:21 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/applicants
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
r7252 r7254 490 490 return '' 491 491 492 def formatDatetime(self,datetimeobj):493 if isinstance(datetimeobj, datetime):494 return datetimeobj.strftime("%Y-%m-%d %H:%M:%S")495 else:496 return None497 498 492 class AcceptanceFeePaymentAddPage(grok.View): 499 493 """ Page to add an online payment ticket … … 889 883 return 890 884 891 def formatDatetime(self,datetimeobj):892 if isinstance(datetimeobj, datetime):893 return datetimeobj.strftime("%Y-%m-%d %H:%M:%S")894 else:895 return None896 897 885 def unremovable(self, ticket): 898 886 usertype = getattr(self.request.principal, 'user_type', None) -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/applicantdisplaypage.pt
r7250 r7254 59 59 <td> <a tal:attributes="href value/__name__"> 60 60 <span tal:content="value/p_id">PID</span></a></td> 61 <td tal:content="python: view.formatDatetime(value.creation_date)">CREATION DATE</td>62 <td tal:content="python: view.formatDatetime(value.payment_date)">PAYMENT DATE</td>61 <td tal:content="python: layout.formatDatetime(value.creation_date)">CREATION DATE</td> 62 <td tal:content="python: layout.formatDatetime(value.payment_date)">PAYMENT DATE</td> 63 63 <td tal:content ="value/category">CATEGORY</td> 64 64 <td tal:content ="value/p_item">ITEM</td> -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/applicanteditpage.pt
r7250 r7254 127 127 <td> <a tal:attributes="href cl/__name__"> 128 128 <span tal:content="cl/p_id">PID</span></a></td> 129 <td tal:content="python: view.formatDatetime(cl.creation_date)">CREATION DATE</td>130 <td tal:content="python: view.formatDatetime(cl.payment_date)">PAYMENT DATE</td>129 <td tal:content="python: layout.formatDatetime(cl.creation_date)">CREATION DATE</td> 130 <td tal:content="python: layout.formatDatetime(cl.payment_date)">PAYMENT DATE</td> 131 131 <td tal:content ="cl/category">CATEGORY</td> 132 132 <td tal:content ="cl/p_item">ITEM</td>
Note: See TracChangeset for help on using the changeset viewer.