[storm] storm Digest, Vol 15, Issue 13

王岩 wy448166776 at 163.com
Sat Jul 26 15:54:16 BST 2008


 en
 
 
 


在2008-07-26,storm-request at lists.canonical.com 写道:
>Send storm mailing list submissions to
>	storm at lists.canonical.com
>
>To subscribe or unsubscribe via the World Wide Web, visit
>	https://lists.ubuntu.com/mailman/listinfo/storm
>or, via email, send a message with subject or body 'help' to
>	storm-request at lists.canonical.com
>
>You can reach the person managing the list at
>	storm-owner at lists.canonical.com
>
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of storm digest..."
>
>
>Today's Topics:
>
>   1. Re: I get a multiple matches exception, but it shows me the
>      same match twice (Gabriel Rossetti)
>   2. Re: I get a multiple matches exception,	but it shows me the
>      same match twice (Gustavo Niemeyer)
>   3. Re: I get a multiple matches exception,	but it shows me the
>      same match twice (Gustavo Niemeyer)
>
>
>----------------------------------------------------------------------
>
>Message: 1
>Date: Fri, 25 Jul 2008 14:58:29 +0200
>From: Gabriel Rossetti ", line 1, in 
>>   File "services/common/orm.py", line 704, in populateDb
>>     user1 = User(u"Gabriel", u"Rossetti", lang1)
>>   File "services/common/orm.py", line 137, in __init__
>>     self.language = lang
>>   File "/usr/lib/python2.5/site-packages/storm/references.py", line 133, 
>> in __set__
>>     self._build_relation(local.__class__)
>>   File "/usr/lib/python2.5/site-packages/storm/references.py", line 155, 
>> in _build_relation
>>     self._remote_key = resolver.resolve(self._remote_key)
>>   File "/usr/lib/python2.5/site-packages/storm/references.py", line 773, 
>> in resolve
>>     return (self.resolve_one(properties),)
>>   File "/usr/lib/python2.5/site-packages/storm/references.py", line 780, 
>> in resolve_one
>>     return self._resolve_string(property)
>>   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
>>
>> Does anyone have any ideas? Also, I tried to use the debugging method 
>> like shown in the tutorial, but storm.tracer doesn't exist anymore, was 
>> this replaced by something else? (I know it wouldn't help me find the 
>> error in this case)
>>
>> Thanks,
>> Gabriel
>>
>>   
>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.
>
>And for the debugging, apparently storm.tracer doesn't exist yet, other 
>than in trunk, so I think storm.database.DEBUG = True is the way to go 
>for now.
>
>Gabriel
>
>
>
>
>
>------------------------------
>
>Message: 2
>Date: Fri, 25 Jul 2008 10:00:35 -0300
>From: "Gustavo Niemeyer"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/storm/attachments/20080726/d99b7412/attachment.htm 


More information about the storm mailing list