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
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
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
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
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
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 =
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,
Hi villas,
Great recommendation - thanks!,
Carlos
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
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)
10 matches
Mail list logo