form.accepts is a filter that moves request.vars into form.vars after
parsing and also populates form.errors.
Looking at form.errors should help.
On Dec 22, 6:58 pm, Johann Spies wrote:
> I have the following controller:
> ===
> def show_fpipl01():
> tabel = request.v
I think because
Field('id', requires = IS_IN_SET(ids),
id in the form is a string and ids in the set are integers.
On Dec 22, 1:19 pm, villas wrote:
> form.accepts is a filter that moves request.vars into form.vars after
> parsing and also populates form.errors.
>
> Looking at form.errors shoul
Two things to check:
1) you might have session.forget() in the controller, maybe outside
the action.
2) you might be using a custom form and it is missing the hidden
fields,
if you don't have the _formkey then the form will not be accepted.
On Dec 23, 2:39 am, Johann Spies wrote:
> On 22 Dec
On Dec 24, 2:21 am, Johann Spies wrote:
>
> I have it working now and it seems that the main thing I have changed to
> make it work was to change the name of the field (from 'id' to something
> else). I did not check afterwards in the documentation but I suspect that
> SQLFORM.factory uses an '
On 22 December 2010 21:32, mdipierro wrote:
> I think because
>
> Field('id', requires = IS_IN_SET(ids),
>
> id in the form is a string and ids in the set are integers.
>
>
Thanks for your answer. Changing the definition to
form = SQLFORM.factory(Field('id', 'integer', requires = IS_IN_SET(ids),
On Dec 22, 2010, at 12:22 PM, Johann Spies wrote:
> On 22 December 2010 21:32, mdipierro wrote:
> I think because
>
> Field('id', requires = IS_IN_SET(ids),
>
> id in the form is a string and ids in the set are integers.
>
>
> Thanks for your answer. Changing the definition to
>
> form = SQL
On 22 December 2010 22:36, Jonathan Lundell wrote:
>
> When accepts() returns False, look at form.errors. It's a dict (Storage,
> actually, but you can treat it as a dict) that is keyed, typically, by field
> names, with error messages as values.
>
> (accepts() will also return False before the f
On Dec 23, 2010, at 6:42 AM, DenesL wrote:
>
>
> Two things to check:
> 1) you might have session.forget() in the controller, maybe outside
> the action.
> 2) you might be using a custom form and it is missing the hidden
> fields,
> if you don't have the _formkey then the form will not be accep
On 23 December 2010 16:42, DenesL wrote:
>
> Two things to check:
> 1) you might have session.forget() in the controller, maybe outside
> the action.
> 2) you might be using a custom form and it is missing the hidden
> fields,
> if you don't have the _formkey then the form will not be accepted.
On Dec 24, 2010, at 9:19 AM, DenesL wrote:
>
> On Dec 24, 2:21 am, Johann Spies wrote:
>>
>> I have it working now and it seems that the main thing I have changed to
>> make it work was to change the name of the field (from 'id' to something
>> else). I did not check afterwards in the documenta
10 matches
Mail list logo