I think Wes is running and old version of web2py. You need 1.49.1 for
form.latest to work properly.

Massimo

On Nov 14, 9:27 am, JulieAtkins <[EMAIL PROTECTED]> wrote:
> It's referring the the fact that it doesn't know about form.latest.
> Where is 'latest' coming from? It would help to see the context of
> where that is. What are you trying to do in setting the value of the
> input (where are you trying to get the value from? A db value? A
> previous form submit?)
>
> On Nov 10, 3:15 pm, "Wes James" <[EMAIL PROTECTED]> wrote:
>
> > with 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 get the error:
>
> > Traceback (most recent call last):
> >   File "gluon/restricted.pyc", line 62, in restricted
> >   File 
> > "/web2py.app/Contents/Resources/applications/cnrsa/views/generic.html",
> > line 29, in <module>
> > AttributeError: 'SQLFORM' object has no attribute 'latest'
>
> > -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