I asked about this a while ago here<http://groups.google.co.uk/group/web2py/browse_thread/thread/e9781e209f75e74a/9d121a7f79a1a995?lnk=gst&q=compound#9d121a7f79a1a995> . Hope it helps.
On Fri, Feb 5, 2010 at 8:46 AM, hywang <[email protected]> wrote: > there is a table > db.define_table('class_student', Field('class_name'), > Field('student_name')) > > class_name + student_name should be unique in this table. How can > validate the submitted data when user update or insert a record ? > > Thanks :-) > > -- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<web2py%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/web2py?hl=en. > > -- You received this message because you are subscribed to the Google Groups "web2py-users" 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.

