tablename is created from the field parameter, if your field is 'gis_key.service' then tablename='gis_key'
Your model should have something like: db.gis_key.key.requires=THIS_NOT_IN_DB(db (db.gis_key.service==request.vars.service),'gis_key.service',request.vars.service,'service already in use') but I can't say for sure since I haven't seen your model. Where did you place the validator code?. You can even have it in your model. On Dec 3, 10:01 am, Fran <[EMAIL PROTECTED]> wrote: > > Fran, the code above was just an example. > > You have to adapt the validator parameters to your own model, i.e. you > > don't have a 'gis' table. > > Yup, I spotted that ;) > I originally tried changing it to my data then when I thought I must > be mistranslating, then I created a table exactly as defined in your > helpful post...however even 100% following what you'd written gave > exactly this same error. > Have tried a few variations with no success either. > It does seem to be a basis for solving my problem in a nice, generic > way, though :) > > F --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

