[Zope] Facing problems with date datatype

Vikas Mahajan vikas@morelinux.com
Fri, 23 Jun 2000 05:30:39 +0000 (GMT)


Hi All,
I am facing problem with date datatype. I have installed two versions of zope on diff computer. One is a zope 2.1.2 from a binary release and another is zope 2.1.6 i downlodaed as a source release. I am able to get MySQL database connection for source release and not for the one i downloaded as binary.  Now my problem is when i want to insert a datatype in properties of a folder I wporks well with my binary release and not with the one i installed from sourece.  My binary release one takes all of the following formats such as Jan. 07, 2000 jan. 07, 2000 2000/01/07 January  07, 2000 but the one which i compiled fro source takes none of them instead throws following error.
         
 Zope Error

          Zope has encountered an error while publishing this resource. 

          Error Type: DateTimeError
          Error Value: Invalid date: Jan. 07, 2000
and asks me to search for the problem in the following files



Traceback (innermost last):
  File /home/suhail/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 214, in publish_module
  File /home/suhail/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 179, in publish
  File /home/suhail/Zope-2.1.6-src/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook
    (Object: ElementWithAttributes)
  File /home/suhail/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 165, in publish
  File /home/suhail/Zope-2.1.6-src/lib/python/ZPublisher/mapply.py, line 160, in mapply
    (Object: manage_addProperty)
  File /home/suhail/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 102, in call_object
    (Object: manage_addProperty)
  File /home/suhail/Zope-2.1.6-src/lib/python/OFS/PropertyManager.py, line 290, in manage_addProperty
    (Object: ElementWithAttributes)
  File /home/suhail/Zope-2.1.6-src/lib/python/ZPublisher/Converters.py, line 157, in field2date
  File DateTime.py, line 523, in __init__
DateTimeError: (see above)

Since I want to use MySQL as my database I need to work in source release i.e 2.1.6 from source.
So please kindly help me regarding this matter. All help will be appreciated.
Best Regards and Thanx
Vikas

MoreLinux.com - much of more.