On Dec 15, 2:23 pm, mdipierro <[email protected]> wrote:
> db.voter.voterid.requires=IS_NOT_IN_DB(db
> ((db.voter.lastname==request.vars.lastname)&
> (db.voter.firstname==request.vars.firstname)),'voter.voterid'))

I did try something like that but I get:

Traceback (most recent call last):
  File "D:\web2py\trunk\gluon\restricted.py", line 62, in restricted
    exec ccode in environment
  File "D:\web2py\trunk\applications\active/models/db.py", line 99, in
<module>
    ,'voter.voterid')
  File "D:\web2py\trunk\gluon\sql.py", line 302, in __getattr__
    def __getattr__(self, key): return self[key]
  File "D:\web2py\trunk\gluon\sql.py", line 300, in __getitem__
    def __getitem__(self, key): return dict.__getitem__(self,str(key))
KeyError: 'voterid'
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to