Version 1.71.0 (2009-10-31 01:13:28)
On Nov 3, 3:42 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
> Do you have the latest web2py version? Probably not.
>
> On Nov 3, 2:36 pm, mike <michal...@gmail.com> wrote:
>
>
>
> > Im following the documentation, I have made this model (copy&paste
> > it):
>
> > buyer = db.define_table('buyer',
> > Field('name'))
>
> > and in my control, i try to do this:
>
> > rows = db(buyer.id>0).select().find(lambda row:row.name.startswith
> > ('C'))
>
> > return dict(rows)
>
> > but im getting this error:
>
> > AttributeError: 'Rows' object has no attribute 'find'
>
> > any suggestions?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to
web2py+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---