[z3-five] Re: SimpleViewClass and __hash__

Florent Guillaume fg at nuxeo.com
Mon May 9 15:01:12 CEST 2005


Philipp von Weitershausen wrote:
>> No. I'm saying that if the published doesn't have a getId() method, then
>> you pass an object to getThemeByMethod instead of a string.
> 
> So, what's an obvious solution then? Add a getId() method to Five's
> ZPTs? (I'd rather do that instead of adding a weird __hash__...)

That could work yes. It's probably a good idea to give a getId to
objects used in a Zope 2 context in any case.

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)   CTO, Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   fg at nuxeo.com


More information about the z3-five mailing list