Subject Re: How do i build the documentation ?
Author mariuz
--- In firebird-python@yahoogroups.com, Pavel Cisar <pcisar@...> wrote:
>
> 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.

Thanks i have removed itermap from examples and i have simplified the example 3
https://gist.github.com/1364162
DESCRIPTION_DISPLAY_SIZE seems that is not implemented yet None
print fieldDesc[name]
print fieldDesc
NAME ('NAME', 448, None, -1, None, 0, True)
YEAR_RELEASED ('YEAR_RELEASED', 496, None, 4, None, 0, True)