Discussion:
[Erp5-dev] Patch for FormulatorPatch.py
Shrenik Bhura
2006-08-10 12:01:11 UTC
Permalink
Encountered a suspected bug in FormulatorPatch.py while using Base_viewMetadata.

Herein is the suggested patch.


@@ -737,8 +737,8 @@
return ''

use_ampm = field.get_value('ampm_time_style')
- -
- - year = "%04d" % value.year()
+ value = DateTime(value)
+ year = "%04d" % value.year()
month = "%02d" % value.month()
day = "%02d" % value.day()
if use_ampm:


Regards,
SB

- --
Shrenik Bhura
IntelliAnt
5A, Outram Street
Kolkata - 700 017
INDIA
Ph: +91 98310 33483
URL: www.intelliant.net
Jérôme Perrin
2006-08-10 15:01:38 UTC
Permalink
Post by Shrenik Bhura
Encountered a suspected bug in FormulatorPatch.py while using
Base_viewMetadata.
Thanks a lot for this patch, but I think this checkin fixed the problem:
http://svn.erp5.org/?view=rev&rev=8680
--
J?rome
Shrenik Bhura
2006-08-10 15:43:21 UTC
Permalink
Yes, it does. Update of Base.py fixes it.

Thanks Jerome for the information.

SB
Post by Jérôme Perrin
Post by Shrenik Bhura
Encountered a suspected bug in FormulatorPatch.py while using
Base_viewMetadata.
http://svn.erp5.org/?view=rev&rev=8680
Loading...