[z3-five] Re: SimpleViewClass and __hash__
Philipp von Weitershausen
philipp at weitershausen.de
Mon May 9 14:03:15 CEST 2005
Florent Guillaume wrote:
> 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.
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__...)
Philipp
More information about the z3-five
mailing list