-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dmitry Vasiliev wrote: > Benji York wrote: >> Philipp von Weitershausen wrote: >>> Dmitry Vasiliev wrote: >>> >>>> Log message for revision 68818: >>>> Fixed issue 525: DateWidget ru-format >> >>>> - type="text" value="2002-12-02 12:30:00" /> >>>> + type="text" value="2002 12 2 12:30:00 " /> >>>> >>>> Note that a EditForm can't make use of a get_rendered method. The >>>> get_rendered >>>> method does only set initial values. >> >>> Why does the display of the default DateTime widget change? > > DatetimeWidget now use zope.i18n for parse and format values so the > display is the same as for DatetimeDisplayWidget (note the line 1529 of > the form.txt). > >> ...and in such a strange way? > > It's the datetime format for the default locale, see the specification > in zope/i18n/locales/data/root.xml. >
That breaks a test: File "/home/tseaver/projects/Zope-CVS/tseaver-retire_zpkg-2.10/lib/python/zope/formlib/form.txt", line 1547, in form.txt Failed example: print MyAddForm(None, request)() # doctest: +NORMALIZE_WHITESPACE Expected: <input class="textType" id="form.identifier" name="form.identifier" size="10" type="text" value="" /> <input class="textType" id="form.name" name="form.name" size="20" type="text" value="" /> <input class="textType" id="form.min_size" name="form.min_size" size="10" type="text" value="" /> <input class="textType" id="form.max_size" name="form.max_size" size="10" type="text" value="" /> <input class="textType" id="form.now" name="form.now" size="20" type="text" value="2002-12-02 12:30:00" /> Got: <input class="textType" id="form.identifier" name="form.identifier" size="10" type="text" value="" /> <input class="textType" id="form.name" name="form.name" size="20" type="text" value="" /> <input class="textType" id="form.min_size" name="form.min_size" size="10" type="text" value="" /> <input class="textType" id="form.max_size" name="form.max_size" size="10" type="text" value="" /> <input class="textType" id="form.now" name="form.now" size="20" type="text" value="2002 12 2 12:30:00 " /> not onlyt that, but I don't believe that '2002 12 2 12:30:00' is a valid date representation in *any* standard locale. The dashes-with-leading-zeros should be the default (it is the stock ISO date format). Tres. - -- =================================================================== Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEoE23+gerLs4ltQ4RAj8JAJ0WzmZFOqNm1Fi2wRuOiGSIR3DwiACfXvEB BeY9EW5FqiOAAiRpXJlmWwo= =KV4D -----END PGP SIGNATURE----- _______________________________________________ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com