|
From: Karl C. <qu...@no...> - 2004-07-13 14:30:24
|
This only happens when the select returns empty. You can do
either a try/except or do a count first.
>>>>> "Florian" == Florian Schulze <flo...@gm...> writes:
Florian>
Florian> I get an error when I try to get an element from a
Florian> select. result = Klassname.select(<statements>)
Florian> result[0] <---- here
Florian>
Florian> I get TypeError: Iteration over non-sequence
Florian>
Florian> It seems like the Iteration object returns None in
Florian> dbconnection.iterSelect and the list(Iteration(...))
Florian> fails because of that.
--
Karl 2004-07-13 07:29
|