[Cubicweb] dealing with dates before 1900

Alexandre Fayolle alexandre.fayolle at logilab.fr
Mon Aug 23 08:49:48 CEST 2010


On Friday 20 August 2010 22:39:10 Alexandre Fayolle wrote:
> As part of a personal projects, I need to deal with date long before 1900
> in a CW instance. Problem is, python's datetime module does not like this
> at all, and I get stack traces such as:
<snip>
> Is there a recommended workaround for this?

I dug further into this over the week end and came up with a patch to 
logilab.common.date and cubicweb.utils (attached for review). 


-- 
Alexandre Fayolle                              LOGILAB, Paris (France)
Formations Python, CubicWeb, Debian :  http://www.logilab.fr/formations
Développement logiciel sur mesure :      http://www.logilab.fr/services
Informatique scientifique:               http://www.logilab.fr/science
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logilab-common-date.patch
Type: text/x-patch
Size: 2817 bytes
Desc: not available
URL: <http://lists.cubicweb.org/pipermail/cubicweb/attachments/20100823/13dcbd30/attachment-0504.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cubicweb-utils.patch
Type: text/x-patch
Size: 1106 bytes
Desc: not available
URL: <http://lists.cubicweb.org/pipermail/cubicweb/attachments/20100823/13dcbd30/attachment-0505.bin>


More information about the Cubicweb mailing list