[Zope] Cautionary tale -- OSError: [Errno 2] No such file or directory

Dylan Reinhardt zope@dylanreinhardt.com
04 Apr 2003 08:54:57 -0800


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