equal
deleted
inserted
replaced
781 format_key = 'ui.datetime-format' |
781 format_key = 'ui.datetime-format' |
782 |
782 |
783 def render_example(self, req): |
783 def render_example(self, req): |
784 formatstr1 = req.property_value('ui.datetime-format') |
784 formatstr1 = req.property_value('ui.datetime-format') |
785 formatstr2 = req.property_value('ui.date-format') |
785 formatstr2 = req.property_value('ui.date-format') |
786 return req._('%s, or without time: %s') % (now().strftime(formatstr1), |
786 return req._('%(fmt1)s, or without time: %(fmt2)s') % { |
787 now().strftime(formatstr2)) |
787 'fmt1': now().strftime(formatstr1), |
|
788 'fmt2': now().strftime(formatstr2), |
|
789 } |
788 |
790 |
789 |
791 |
790 |
792 |
791 |
793 |
792 def __init__(self, vreg, subjschema, rschema, objschema, **kwattrs): |
794 def __init__(self, vreg, subjschema, rschema, objschema, **kwattrs): |