Subject | Re: [firebird-python] How do i build the documentation ? |
---|---|
Author | mariuz |
Post date | 2011-11-11T15:56:33Z |
On Fri, Nov 11, 2011 at 09:07:02AM +0100, Pavel Cisar wrote:
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'Cursor' object is not iterable
> Dne 10.11.2011 17:41, mariuz napsal(a):Thanks i have started with the tutorial and testing the examples from it
> > Just one question for the old documentation
> > how do i build it ?
> >
> > sphinx-build [build options]
> >
> >
> > I want to start converting some of the docs to the pyfirebird
> > and before the import i wanted to know how can the docs can be build
>
> Use: make html
>
> See http://sphinx.pocoo.org/tutorial.html
>
>>> con = firebirdsql.connect(dsn='localhost:/tmp/test.fdb', user='sysdba', password='masterkey')... print '%s has been publicly available since %d.' % (name, year_released)
>>> SELECT = "select name, year_released from languages order by year_released"
>>> cur.execute(SELECT)
>>> cur = con.cursor()
>>> cur.execute(SELECT)
>>> for (name, year_released) in cur:
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'Cursor' object is not iterable
> best regards
> Pavel Cisar
> IBPhoenix
>
>