[Zope-CMF] Re: [CMF-checkins] CVS: CMF/CMFDefault - MembershipTool.py:1.43

Florent Guillaume fg at nuxeo.com
Tue Feb 10 17:00:19 EST 2004


On 10 Feb 2004, at 22:46, Tres Seaver wrote:
>>> You're right about the aq_base, but I'll code it differently:
>>>   if hasattr(aq_base(members), id):
>>>     folder = getattr(members, id)
>>>     ...
>
> Could we just use '_getObject' instead?  It should avoid the dance 
> around 'aq_base' and '__of__.

I guess you mean _getOb. Well internally it does aq_base and hasattr 
too. But I'm ok with it, you're right, the intent is clearer then.

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg at nuxeo.com




More information about the Zope-CMF mailing list