Changeset 8170
- Timestamp:
- 16 Apr 2012, 07:39:11 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r8160 r8170 52 52 from waeup.kofa.students.interfaces import IStudentsUtils 53 53 from waeup.kofa.utils.helpers import string_from_bytes, file_size 54 from waeup.kofa.widgets.datewidget import FriendlyDateDisplayWidget 54 from waeup.kofa.widgets.datewidget import ( 55 FriendlyDateDisplayWidget, FriendlyDateDisplayWidget, 56 FriendlyDatetimeDisplayWidget) 55 57 from waeup.kofa.widgets.phonewidget import PhoneWidget 56 58 from waeup.kofa.widgets.restwidget import ReSTDisplayWidget … … 489 491 grok.require('waeup.viewApplication') 490 492 form_fields = grok.AutoFields(IApplicantOnlinePayment) 493 form_fields[ 494 'creation_date'].custom_widget = FriendlyDatetimeDisplayWidget('le') 495 form_fields[ 496 'payment_date'].custom_widget = FriendlyDatetimeDisplayWidget('le') 491 497 pnav = 3 492 498 … … 494 500 def label(self): 495 501 return _('${a}: Online Payment Ticket ${b}', mapping = { 496 'a':self.context.__parent__.display_fullname, 'b':self.context.p_id}) 502 'a':self.context.__parent__.display_fullname, 503 'b':self.context.p_id}) 497 504 498 505 class OnlinePaymentCallbackPage(UtilityView, grok.View): … … 534 541 grok.require('waeup.viewApplication') 535 542 form_fields = grok.AutoFields(IApplicantOnlinePayment) 536 #form_fields['creation_date'].custom_widget = FriendlyDateDisplayWidget('le')537 #form_fields['payment_date'].custom_widget = FriendlyDateDisplayWidget('le')543 form_fields['creation_date'].custom_widget = FriendlyDateDisplayWidget('le') 544 form_fields['payment_date'].custom_widget = FriendlyDateDisplayWidget('le') 538 545 prefix = 'form' 539 546 -
main/waeup.kofa/trunk/src/waeup/kofa/payments/interfaces.py
r8160 r8170 20 20 from waeup.kofa.interfaces import IKofaObject, SimpleKofaVocabulary 21 21 from waeup.kofa.interfaces import MessageFactory as _ 22 from waeup.kofa.schema import FormattedDatetime23 22 24 23 payment_states = SimpleKofaVocabulary( … … 69 68 ) 70 69 71 creation_date = FormattedDatetime(70 creation_date = schema.Datetime( 72 71 title = _(u'Ticket Creation Date'), 73 72 readonly = False, 74 73 ) 75 74 76 payment_date = FormattedDatetime(75 payment_date = schema.Datetime( 77 76 title = _(u'Payment Date'), 78 77 required = False, … … 188 187 readonly = False, 189 188 ) 190 191 -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r8160 r8170 45 45 IKofaUtils, IUniversity) 46 46 from waeup.kofa.interfaces import MessageFactory as _ 47 from waeup.kofa.widgets.datewidget import FriendlyDateDisplayWidget 47 from waeup.kofa.widgets.datewidget import ( 48 FriendlyDateWidget, FriendlyDateDisplayWidget, 49 FriendlyDatetimeDisplayWidget) 48 50 from waeup.kofa.widgets.restwidget import ReSTDisplayWidget 49 51 from waeup.kofa.widgets.phonewidget import PhoneWidget … … 1114 1116 grok.require('waeup.viewStudent') 1115 1117 form_fields = grok.AutoFields(IStudentOnlinePayment) 1118 form_fields[ 1119 'creation_date'].custom_widget = FriendlyDatetimeDisplayWidget('le') 1120 form_fields[ 1121 'payment_date'].custom_widget = FriendlyDatetimeDisplayWidget('le') 1116 1122 pnav = 4 1117 1123 … … 1180 1186 grok.require('waeup.viewStudent') 1181 1187 form_fields = grok.AutoFields(IStudentOnlinePayment) 1182 #form_fields['creation_date'].custom_widget = FriendlyDateDisplayWidget('le')1183 #form_fields['payment_date'].custom_widget = FriendlyDateDisplayWidget('le')1188 form_fields['creation_date'].custom_widget = FriendlyDateDisplayWidget('le') 1189 form_fields['payment_date'].custom_widget = FriendlyDateDisplayWidget('le') 1184 1190 prefix = 'form' 1185 1191 title = 'Payment Data' … … 1381 1387 grok.require('waeup.handleAccommodation') 1382 1388 form_fields = grok.AutoFields(IBedTicket) 1383 #form_fields['booking_date'].custom_widget = FriendlyDateDisplayWidget('le')1389 form_fields['booking_date'].custom_widget = FriendlyDateDisplayWidget('le') 1384 1390 prefix = 'form' 1385 1391 -
main/waeup.kofa/trunk/src/waeup/kofa/students/interfaces.py
r8160 r8170 24 24 IKofaObject, academic_sessions_vocab, validate_email, IKofaUtils) 25 25 from waeup.kofa.interfaces import MessageFactory as _ 26 from waeup.kofa.schema import TextLineChoice, FormattedDate , FormattedDatetime26 from waeup.kofa.schema import TextLineChoice, FormattedDate 27 27 from waeup.kofa.students.vocabularies import ( 28 28 StudyLevelSource, contextual_reg_num_source, contextual_mat_num_source, … … 467 467 ) 468 468 469 booking_date = FormattedDatetime(469 booking_date = schema.Datetime( 470 470 title = _(u'Booking Date'), 471 471 required = False,
Note: See TracChangeset for help on using the changeset viewer.