I'm using 1.47

On Mon, Nov 10, 2008 at 2:30 PM, mdipierro <[EMAIL PROTECTED]> wrote:
>
> yes it does:
>
> over:~/web2py massimodipierro$ python web2py.py  -S test1
>

<snip>

>>>> db.define_table('friend',SQLField('name'))
>>>> form=SQLFORM(db.friend)
>>>> form.accepts(request.vars)
> False
>>>> print form.hidden_fields()
> <input value="friend" type="hidden" name="_formname" />
>
> are you using 1.48?
>
> Massimo
>
> On Nov 10, 3:24 pm, "Wes James" <[EMAIL PROTECTED]> wrote:
>> raceback (most recent call last):
>>   File "gluon/restricted.pyc", line 62, in restricted
>>   File 
>> "/Users/Shared/web2py.app/Contents/Resources/applications/cnrsa/views/generic.html",
>> line 35, in <module>
>> AttributeError: 'SQLFORM' object has no attribute 'hidden_fields'
>>
>> on this:
>>
>> <form>
>> <label>{{=db.student.last_name.label}}</label>
>> <input name="last_name" value="=form.latest.last_name" />
>> {{if form.errors.last_name:}}{{=form.errors.last_name}}{{pass}}
>> <input type="submit" />
>> {{=form.hidden_fields()}}
>> </form>
>>
>> I took out the {{  }} around latest part to see how far it would go.
>>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to