you must have a very old web2py version.

On Apr 24, 9:25 am, Matthew <[email protected]> wrote:
> I'm including previously-defined tables in other tables to reduce
> maintenance. For example, I have "__web_resource" table that has
> Wikipedia IDs, etc that I'm using in other tables.
>
> When I tried your suggestion, I got the following error:
>
> File "/home/matthew/dev/projects/webapp/src/app/applications/myapp/
> models/db.py", line 114, in <module>
>     __web_resource, fake_migrate=True)
> TypeError: __init__() got an unexpected keyword argument
> 'fake_migrate'
>
> Is this due to the inclusion of other tables?
>
> On Apr 23, 10:13 am, mdipierro <[email protected]> wrote:
>
> > Something went wrong with migration. Do this:
>
> > 1) comment the field that gives you problem and set migrate to fake:
>
> > db.define_table('performer',
> >      ...
> > #     Field('musicbrainz_guid'....),
> >      ...,
> >      fake_migrate=True) # <<<
>
> > 2) run appadmin once (it should work)
>
> > 3) uncomment field and remove fake migrate
>
> > db.define_table('performer',
> >      ...
> >      Field('musicbrainz_guid'....),
> >      ...)
>
> > 4) run appadmin again. If you get an error something is wrong in your
> > model.
>
> > On Apr 23, 6:19 am, Matthew <[email protected]> wrote:
>
> > > >>> perf = db(db.performer.id > 0).first()
>
> > > Traceback (most recent call last):
> > >   File "<console>", line 1, in <module>
> > > AttributeError: 'Set' object has no attribute 'first'>>> perf = 
> > > db(db.performer.id > 0).select().first()
>
> > > Traceback (most recent call last):
> > >   File "<console>", line 1, in <module>
> > >   File "/home/matthew/dev/projects/webapp/src/app/gluon/sql.py", line
> > > 3056, in select
> > >     rows = response(query)
> > >   File "/home/matthew/dev/projects/webapp/src/app/gluon/sql.py", line
> > > 3051, in response
> > >     db._execute(query)
> > >   File "/home/matthew/dev/projects/webapp/src/app/gluon/sql.py", line
> > > 958, in <lambda>
> > >     self._execute = lambda *a, **b: self._cursor.execute(*a, **b)
> > > ProgrammingError: column performer.musicbrainz_guid does not exist
> > > LINE 1: ..._id, performer.facebook_id, performer.twitter_id,
> > > performer....
>
> > > On Apr 22, 8:48 am, Kuba Kucharski <[email protected]> wrote:
>
> > > > Can you show us the line with a query code?
>
> > > > --
> > > > Kuba
>
> > > > --
> > > > Subscription 
> > > > settings:http://groups.google.com/group/web2py/subscribe?hl=en

Reply via email to