[Zope] ZopeTime() trouble.

Robert Restad rr at quicknet.no
Wed Nov 12 11:02:24 EST 2003


I have two versions of Zope running...
 
My clients version, which is Linux and an original Zope 1.10.3 ... (Awww... old, I know)... 
My local version, which is Win32 and Zope 1.10.3 ... (Old version, new installation, aye...)

Now, after fighting an uneven battle against a Win32 installation of MySQL-Python/MySQLDA etc. for some time, I finally succeeded to import the application to my workstation. And incredibly enough, most of it worked, which I thoguht was too good to be true... eh ... Now, yes - really. It was too good to be true, because parts of the application pages proved to fail due to a couple of minor lines in the code... 

Now, it seems to be the following lines, related to ZopeTime and which format to use... (This actually works on the Zope 1.10 linux installation, but not on my Win32 installation)...

    <!--#call "REQUEST.set('todate', ZopeTime()+1)"-->

And another line...

  <!--#call "REQUEST.set('fromdate', ZopeTime('%s/%s/%s' % (from_year, from_month, from_day)))"-->

Now, being the true Zope (python) newbie as I am, I admit this looks pretty cool. And logic. But the logic stops working right about why it works on one Zope 1.10.3 installation but not on the other.

Is this ZopeTime() thing calling a function in Python? Is it a chance that my Python installation (Zope 1.10.3 comes with Python 1.5 eh?) is not the same as the one on the Linux box? ... Now, I think I have installed Python 2.2 on this workstation. (Any way I can check which Python version Zope calls except decoding those cryptic "innermost traceback" -messages?

Any ideas? Workarounds?

Also... would any of you guys happen to have documentation to Zope 1.10, eventually where I can find it? What I have is pretty limited, and my client doesnt really understand the words "hard to do", "obsolete" and "no documentation" ... he keeps repeating "you fix, you smart, you computer guy, right?" all the time ... 

Best regards,
Robert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.zope.org/pipermail/zope/attachments/20031112/eec32511/attachment.html


More information about the Zope mailing list