4 Apr
2003
4 Apr
'03
4:54 p.m.
On Fri, 2003-04-04 at 07:51, John Ziniti wrote:
I would occasionally get these errors when trying to do things with certain Products I had written for our website. I had attributed it to Zope/ZEO weirdness and would usually just restart the server in frustration.
<snip>
The morals of the story:
1) if you use os.chdir in your Products, make sure you os.chdir() *back* when you are done.
2) If you use os.getcwd() in your Products, count on the fact that someone else's Product did not follow #1 by catching OSError and picking a decent cwd. I use the following
And the hardest lesson I've had to learn about Zope: 3. Most Zope "weirdness" is better described as "operator error" :-) Dylan