yes it does:

over:~/web2py massimodipierro$ python web2py.py  -S test1
WARNING:root:no psycopg2 driver
WARNING:root:no cx_Oracle driver
WARNING:root:no MSSQL driver
WARNING:root:no kinterbasdb driver
WARNING:root:no informixdb driver
default applications appear to be installed already
web2py Enterprise Web Framework
Created by Massimo Di Pierro, Copyright 2007-2008
Version 1.48 (2008-11-10 12:14:30)
WARNING:root:import IPython error, use default python shell
Python 2.5.1 (r251:54869, Apr 18 2007, 22:08:04)
[GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> db=SQLDB()
>>> 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.
>
> -wj
--~--~---------~--~----~------------~-------~--~----~
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