[z3-five] SimpleViewClass and __hash__
Jean-Marc Orliaguet
jmo at chalmers.se
Mon May 9 12:25:35 CEST 2005
Florent Guillaume wrote:
>Jean-Marc Orliaguet wrote:
>
>
>>I think that the problem is not here, but in the way persistent mappings
>>are treated.
>>
>>the stored object in that case is a simply a *string* that happens to
>>have the same name as a page template or a script, which is then
>>compared to the id of REQUEST['PUBLISHED'], so there are no page
>>templates involved.
>>
>>the following line failed before the changes:
>>
>>http://svn.nuxeo.org/trac/pub/changeset/21402
>>
>>it seems weird that a persistent mapping should not be accessible with
>>mapping.get(key) and
>>mapping.has_key(key) also fails under Five.
>>
>>
>
>I doubt you're dealing with a string, then. Are you sure the problem is
>not that in getRequestedThemeAndPageName your published has no getId()
>method ?
>
>Once again, having abitrary try/except that "try to fix things for the
>caller" is a bad idea.
>
>Florent
>
>
It is a persistent mapping that contains dictionaries of strings.
/JM
More information about the z3-five
mailing list