[z3-five] SimpleViewClass and __hash__

Florent Guillaume fg at nuxeo.com
Mon May 9 13:49:25 CEST 2005


Jean-Marc Orliaguet wrote:
>>But in getRequestedThemeAndPageName you have this code:
>>
>> if published is not None:
>>           try:
>>               published = published.getId()
>>           except AttributeError:
>>               pass
>>           theme = self.getThemeByMethod(published)
>>
>>That's what I'm talking about.
> 
> OK, you mean that CPSSkins w/ Five crashes when the 'published' argument
> passed to getThemeByMethod is None?

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.

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