[z3-five] SimpleViewClass and __hash__
Florent Guillaume
fg at nuxeo.com
Mon May 9 12:11:13 CEST 2005
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
--
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