From: Ivo v. d. W. <vla...@gm...> - 2004-07-14 09:18:46
|
On Tue, 13 Jul 2004 16:08:45 +0200, Florian Schulze <flo...@gm...> wrote: > I get an error when I try to get an element from a select. > > result = Klassname.select(<statements>) > result[0] <---- here > > I get TypeError: Iteration over non-sequence > > It seems like the Iteration object returns None in dbconnection.iterSelect > and the list(Iteration(...)) fails because of that. > Are you sure your SQL statement is correct? If you enable debug (debug=1 in your connection), will the generated SQL work from a standard sql client? Cheers Ivo -- Drs. I.R. van der Wijk -=- Korte Leidsedwarsstraat 12 Amaze 1017 RC Amsterdam, NL -=- T +31-20-4688336 F +31-20-4688337 Zope/Plone/Content Management W http://www.amaze.nl E in...@am... Open Source Solutions W http://vanderwijk.info E iv...@am... Consultancy PGP http://vanderwijk.info/pgp |