Re: Python 2.4.1 incompatibility with al-for ?
Andrew McNamara <[email protected]> Tue, 19 Apr 2005 20:25:25 +1000
| Newsgroups | gmane.comp.web.albatross.general |
|---|---|
| Message-ID | <[email protected]> |
>Maybe the mysql library was upgraded when you went
>from 2.2 to 2.4? My guess would be that it's returning an iterable,
>rather than an array. Currently <al-for> requires an indexable object
>such as an array or tuple. I guess you could try something like:
It might also be worth trying to cast the object returned by mysql to a
list explicitly:
if result:
ctx.locals._loglist = list(c.fetchone()['changelog'])
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/