[web2py] Re: crud.create causes an id problem

2012-05-13 Thread Massimo Di Pierro
The new web2py (n trunk) has request.args(0,default=0,cast=int) On Saturday, 12 May 2012 13:27:07 UTC-5, Najtsirk wrote: > > I'm not too good at this stuff...but i think i had similar problem. > > In my controller I set the default value for the crud.create reference > field: > > db.table.refere

[web2py] Re: crud.create causes an id problem

2012-05-12 Thread Najtsirk
I'm not too good at this stuff...but i think i had similar problem. In my controller I set the default value for the crud.create reference field: db.table.referenceid.default = request.args(0) form=crud.create(db.table) I solved the problem with: db.table.referenceid.default = *int*(reque

[web2py] Re: crud.create causes an id problem

2012-04-27 Thread Ross Peoples
I have created Issue 777: http://code.google.com/p/web2py/issues/detail?id=777 On Friday, April 27, 2012 9:15:07 AM UTC-4, Massimo Di Pierro wrote: > > Please open a ticket about this. > > On Thursday, 26 April 2012 13:21:34 UTC-5, villas wrote: >> >> Just a thought... if you are trying to creat

[web2py] Re: crud.create causes an id problem

2012-04-27 Thread Massimo Di Pierro
Please open a ticket about this. On Thursday, 26 April 2012 13:21:34 UTC-5, villas wrote: > > Just a thought... if you are trying to create a new table which has a > 'bigint' id, this may be incompatible if it references an existing table > which has an 'integer' id. > > Regards, > David >

[web2py] Re: crud.create causes an id problem

2012-04-26 Thread villas
Just a thought... if you are trying to create a new table which has a 'bigint' id, this may be incompatible if it references an existing table which has an 'integer' id. Regards, David

[web2py] Re: crud.create causes an id problem

2012-04-26 Thread Ross Peoples
I'm having a similar issue using SQLFORM. I am using a table that stores extra data for users, and I call it auth_user_extended: db.define_table('auth_user_extended', Field('auth_user', db.auth_user, readable=False, writable=False), Field('supervisor', 'boolean', label='Is Supervisor?', d

[web2py] Re: crud.create causes an id problem

2012-04-05 Thread Massimo Di Pierro
Please open a bug report this on googlecode. On Thursday, 5 April 2012 03:38:38 UTC-5, Sundar wrote: > > I migrated an application running in 1.94.6 to 1.99.7. > > I have a peculiar problem. Crud.create on normal tables work. But whenever > I apply crud.create on children table (that is there is