[Erp5-dev] Bug in ZSQLCatalog

Yoshinori Okuji yo at nexedi.com
Tue Nov 15 08:01:23 CET 2005


On Sunday 13 November 2005 04:35 am, Patrick Gerken wrote:
> But somebody must have put it in there for a reason, so I did not
> delete it out of the code.

I suspect that this was just a mistake. I have fixed it right now. Thank you 
for your contribution.

> The applied patch patches the methods resolve_url() and getobject().
> getobject() has no try: except: block any more. All method calls or
> methods got modified so that they return None if an object could not
> be found.

I don't know if your patch against resolve_url and resolve_path is good; 
Basically, they exist only for compatibility with ZCatalog (in fact, ERP5 
does not use them at all), and the code is simply a result of copy-and-paste. 
I checked newer code of ZCatalog, but it still catches exceptions.

YO
-- 
Yoshinori Okuji, Nexedi Research Director
Nexedi: Consulting and Development of Free / Open Source Software
http://www.nexedi.com
ERP5: Free / Open Source ERP Software for small and medium companies
http://www.erp5.org
Storever: OpenBrick, WiFi infrastructure, notebooks and servers
http://www.storever.com



More information about the Erp5-dev mailing list