sorry bro
in place of parentther should be table name
db.children.city.requires = IS_IN_DB(db, db.tablename.id<http://db.parent.id/>
,'%(name)s')
On Thursday, 4 July 2013 14:02:52 UTC+5:30, Kamil wrote:
>
> Thanks, adding format='%('city_name)s' solves the first problem. That's
> obviously in the book...
>
> But the line db.children.city.requires = IS_IN_DB(db,
> db.parent.id,'%(name)s')
> doesn't work actually. I get:
> <type 'exceptions.AttributeError'> 'DAL' object has no attribute 'parent'
>
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.