Re: [web2py] Re: bug in SQLFORM.factory for multiple tables with repeated field names but readable=False

2011-02-22 Thread Richard Vézina
I see... So you have in your form only the readable fields... I suppose that when the form is submit your controller insert manually the values of the omitted fields. Because in case a readable=False field that is notnull (requiered=True...) it has to get value. Richard On Mon, Feb 21, 2011 at

[web2py] Re: bug in SQLFORM.factory for multiple tables with repeated field names but readable=False

2011-02-22 Thread DenesL
On Feb 21, 11:35 pm, Carlos carlosgali...@gmail.com wrote: Hi Richard, What I'm doing is as follows: Let's say I have the following model:    db.define_table('test1', Field('text1'), Field('x', readable=False))    db.define_table('test2', Field('text2'), Field('x', readable=False)) The

Re: [web2py] Re: bug in SQLFORM.factory for multiple tables with repeated field names but readable=False

2011-02-22 Thread Richard Vézina
You right, so as long as my duplicated name field are those that serve the same purpose of auth.signature... I think that there is no problem with those lines of code. Richard On Tue, Feb 22, 2011 at 10:09 AM, DenesL denes1...@yahoo.ca wrote: On Feb 21, 11:35 pm, Carlos

Re: [web2py] Re: bug in SQLFORM.factory for multiple tables with repeated field names but readable=False

2011-02-21 Thread Richard Vézina
Get the same problem... Common name fields (my own auth.signature) in differents tables not working anymore in 1.92.1. I was about to complete to create differents multiple tables form to make easier the life of my user in different use case... I believe I will need to find an other solution to

Re: [web2py] Re: bug in SQLFORM.factory for multiple tables with repeated field names but readable=False

2011-02-21 Thread Carlos
Hi Richard, What I'm doing is as follows: Let's say I have the following model: db.define_table('test1', Field('text1'), Field('x', readable=False)) db.define_table('test2', Field('text2'), Field('x', readable=False)) The new factory (new DAL) requires the non readable fields (x) to be

[web2py] Re: bug in SQLFORM.factory for multiple tables with repeated field names but readable=False

2011-02-19 Thread Massimo Di Pierro
Interesting that it worked before. There is no specific reason it should fail although I never designed it so that it would work. I will take a look asap. Thanks for reporting this. On Feb 18, 10:44 pm, Carlos carlosgali...@gmail.com wrote: Massimo, Example: (model)   f_active =

[web2py] Re: bug in SQLFORM.factory for multiple tables with repeated field names but readable=False

2011-02-19 Thread villas
Hi Carlos, Also bear in mind that 'active' is a SQL keyword and should ideally be avoided to maintain portability between DBs. Regards, D On Feb 19, 4:44 am, Carlos carlosgali...@gmail.com wrote: Massimo, Example: (model)   f_active = Field('active', 'boolean', readable=False,

[web2py] Re: bug in SQLFORM.factory for multiple tables with repeated field names but readable=False

2011-02-19 Thread Carlos
Hi villas, Great recommendation - thanks!, Carlos

[web2py] Re: bug in SQLFORM.factory for multiple tables with repeated field names but readable=False

2011-02-18 Thread Massimo Di Pierro
Can you post an example of code? I am not sure this is a bug, just something that was never supported. On Feb 18, 5:57 pm, Carlos carlosgali...@gmail.com wrote: Hi, I just upgraded to the latest stable version (1.92.1). I believe the following is a bug (which did not occur in my previous

[web2py] Re: bug in SQLFORM.factory for multiple tables with repeated field names but readable=False

2011-02-18 Thread Carlos
Massimo, Example: (model) f_active = Field('active', 'boolean', readable=False, writable=False) db.define_table('table1', Field('text'), f_active) db.define_table('table2', f_active) (controller) def test_controller(): return dict(form=SQLFORM.factory(db.table1, db.table2)) (error)