Problem returning values from a catalog...
Hi, I ve got a very strange problem: I want to return a catalog value named 'from'. The problem is that i cant change the name of the value because its part of the tracker-source code(Maybe I could, but thats the worst solution). When I access the catalog in the way, for brain in catalog: print brain.from i get a error because the name from is a python keyword !! If you know a solution please let me know !! Otherwise i have to edit the tracker-source(urgh!) Thanx, Sebastian
Sebastian Sippl <sebastian@proceryon.at> wrote:
I ve got a very strange problem:
I want to return a catalog value named 'from'. The problem is that i cant change the name of the value because its part of the tracker-source code(Maybe I could, but thats the worst solution).
When I access the catalog in the way,
for brain in catalog: print brain.from
i get a error because the name from is a python keyword !!
print getattr(brain, 'form') Florent -- Florent Guillaume, Nuxeo (Paris, France) +33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com
participants (2)
-
Florent Guillaume -
Sebastian Sippl