[Zope-CMF] Re: CMFDefault: getHomeFolder robustnes

yuppie y.2005- at wcm-solutions.de
Thu Jun 16 06:08:36 EDT 2005


Hi Raphael!


Raphael Ritz wrote:
> If you change your 'Members' folder to be a BTree folder
> CMFDefault's 'getHomeFolder' throws a 'KeyError' if looking
> for a non-existing id (e.g., if your account is defined in
> Zope root).
> 
> Per default, 'Members' is a regular PortalFolder instance
> which gives an 'AttributeError' on such look-ups which
> is caught in the method but the 'KeyError' isn't.

Thanks for reporting this. Should now be fixed in cvs.

> PS: You might have guessed it: I'm starting to look at
> getting Plone running on CMF-1.5

Great! It might help to test your changes against CMF HEAD. The HEAD is 
still very similar to CMF 1.5, but raises errors if you use deprecated code.


Cheers,

	Yuppie



More information about the Zope-CMF mailing list