References with unicode attributes don't work as expected

Bug #251825 reported by Gustavo Niemeyer
4
Affects Status Importance Assigned to Milestone
Storm
New
Undecided
Unassigned

Bug Description

Gabriel Rossetti reported in the list:

"""
I found the error if anyone ever has this too : in my reference
declarations, I used a unicode string... The error isn't very indicative
of the problem, but if you replace :

language = Reference(languageId, u"Language.id")

with :

language = Reference(languageId, "Language.id")

it works.
"""

After stumbling on the following error:

"""
(...)
 File "/usr/lib/python2.5/site-packages/storm/references.py", line 796,
in _resolve_string
   return registry.get(property_path, self._namespace)
 File "/usr/lib/python2.5/site-packages/storm/properties.py", line 284,
in get
   (name, ", ".join(paths)))
storm.exceptions.PropertyPathError: Path 'Language.id' matches multiple
properties: services.common.orm.Language.id, services.common.orm.Language.id
"""

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.