Subject Re: [firebird-python] Re: How do i build the documentation ?
Author Pavel Cisar
Dne 13.11.2011 00:11, mariuz napsal(a):
>
>>>> for row in cur.itermap():
> ... print '%(name)s has been publicly available since %(year_released)d.' % row
> ...
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> AttributeError: 'Cursor' object has no attribute 'itermap'

"itermap" (and other *map methods) is special addition from kinterbasdb,
it's not Python DB API 2.0 standard functionality. It's a nice addition,
but not necessary. BTW, it requires "decription" attribute for
implementation and special dict-like wrapper for row tuples.

> python test.py
> Traceback (most recent call last):
> File "test.py", line 13, in <module>
> print fieldDesc[k.DESCRIPTION_NAME].ljust(fieldDesc[k.DESCRIPTION_DISPLAY_SIZE]) ,
> AttributeError: 'module' object has no attribute 'DESCRIPTION_NAME'

DESCRIPTION_* constants are helpers to access "description" attribute
members.

best regards
Pavel Cisar
IBPhoenix