Great!. I didn know of that option. Instead i was switching the string
in the function that handles the field sequence in gluon.dal (wich was
not a good practice). The cause of the error was that sequence name
for PostgreSQL had to be table_table_id_seq and not table_id_seq (for
a table with table_id field name).

Thanks

On Nov 28, 3:30 am, Massimo Di Pierro <[email protected]>
wrote:
> In gluon/dal.py there is the following code:
>
> def sequence_name(self,table):
>         return '%s_id_Seq' % table
>
> is generates the default name of a sequence. if you have a sequence
> already and it has another name use
>
> db.define_table(...,sequence_name = '...')
>
> On Nov 28, 12:16 am, Johann Spies <[email protected]> wrote:
>
> > On 27 November 2011 16:28, Alan Etkin <[email protected]> wrote:
>
> > > psycopg2.ProgrammingError: relation "debugging_id_seq" does not exist
>
> > Maybe a typo somewhere where debugging_id_seq should be debugging.id_seq?
>
> > Regards
> > Johann
> > --
> > Because experiencing your loyal love is better than life itself,
> > my lips will praise you.  (Psalm 63:3)

Reply via email to