Re: BR: fetch() doesn't bark on wrong class name
Sebastien Bigaret <[email protected]> 21 Sep 2004 20:17:02 +0200
| Newsgroups | gmane.comp.python.modeling |
|---|---|
| Message-ID | <[email protected]> |
Better late than never... The bug is at last fixed, see https://sourceforge.net/tracker/index.php?func=3Ddetail&aid=3D916019&group_= id=3D58935&atid=3D489335 -- S=E9bastien. Marcos Dione <[email protected]> wrote: > is simple to reproduce: just call EditingContext.fetch () with a > wrong class name. I got two different errors with two different > qualifiers, so I thought it was a bad qualifier, and then I realize my > typo. here are those errors: >=20 > Traceback (most recent call last): > File "/home/mdione/src/papo_project/cimarron/src/Gtk2/Gtk2Button.py", l= ine 93, in __activate > self.submit() > File "./Generic/Control.py", line 145, in submit > Generic.Exceptions.ControlError: No pude guardar el valor en el Modelo: > ... Traceback (most recent call last): > ... File "./Generic/Control.py", line 143, in submit > ... File "./Generic/Control.py", line 71, in doAction > ... File "/home/mdione/src/papo_project/luca/Forms.py", line 58, in save > ... guys=3D ec.fetch ('Person', qualifier=3D'name like "%s"' % self.n= ameInput.getValue ()) > ... File "/usr/lib/python2.3/site-packages/Modeling/EditingContext.py",= line 1415, in fetch > ... fs=3DFetchSpecification(entityName, qualifier=3Dqualifier, deepFl= ag=3DisDeep) > ... File "/usr/lib/python2.3/site-packages/Modeling/FetchSpecification.= py", line 53, in __init__ > ... self.setQualifier(qualifier) > ... File "/usr/lib/python2.3/site-packages/Modeling/FetchSpecification.= py", line 108, in setQualifier > ... aQualifier.validateKeysWithRootClassDescription(classDescriptionF= orName(self._entityName)) > ... File "/usr/lib/python2.3/site-packages/Modeling/Qualifier.py", line= 177, in validateKeysWithRootClassDescription > ... allCDkeys=3DaClassDescription.allAttributesKeys()+\ > ... AttributeError: 'NoneType' object has no attribute 'allAttributesKeys' [...] ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php