Akki Nitsch wrote:
> Hi everybody!
> Did anything changed with the AND syntax in sqlobject 0.6
> Here's my code:
> old_entries = ServerEntrie.select(AND (ServerEntrie.q.entrieDate <
> time.time() - 3600, ServerEntrie.q.entrieStatus != 4))
> And here's the exection:
> NameError: global name 'AND' is not defined
> What is my mistake? Is there some different to sqlobject 0.5
Maybe the symbols exported by "from sqlobject import *" have changed,
though I hadn't intended for that to happen. When I test it out, AND
does seem to be exported. You can also use &, which doesn't need to be
imported (though be careful about the order of precedence).
Ian Bicking / ianb@... / http://blog.ianbicking.org