Massimo, this simple scenario should be possible, but how?.

model:
db.define_table('person',SQLField('name'))
db.define_table('project',SQLField('name'))
db.define_table('relation',
  SQLField('person_id','reference person'),
  SQLField('project_id','reference project'))
db.relation.person_id.requires=IS_IN_DB(db,db.person.id,'%(name)s')
db.relation.project_id.requires=IS_IN_DB(db,db.project.id,'%(name)s')

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to