Ignore:
Timestamp:
16 Apr 2012, 07:39:11 (13 years ago)
Author:
uli
Message:

Stamp FormattedDatetime? out completely.

File:
1 edited

Legend:

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

    r8160 r8170  
    5252from waeup.kofa.students.interfaces import IStudentsUtils
    5353from waeup.kofa.utils.helpers import string_from_bytes, file_size
    54 from waeup.kofa.widgets.datewidget import FriendlyDateDisplayWidget
     54from waeup.kofa.widgets.datewidget import (
     55    FriendlyDateDisplayWidget, FriendlyDateDisplayWidget,
     56    FriendlyDatetimeDisplayWidget)
    5557from waeup.kofa.widgets.phonewidget import PhoneWidget
    5658from waeup.kofa.widgets.restwidget import ReSTDisplayWidget
     
    489491    grok.require('waeup.viewApplication')
    490492    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')
    491497    pnav = 3
    492498
     
    494500    def label(self):
    495501        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})
    497504
    498505class OnlinePaymentCallbackPage(UtilityView, grok.View):
     
    534541    grok.require('waeup.viewApplication')
    535542    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')
    538545    prefix = 'form'
    539546
Note: See TracChangeset for help on using the changeset viewer.