Hello,
On this page: http://web2pyslices.com/main/slices/take_slice/53 I have
found a great pice of code which allows to check on the fly if there
is an exact value already in database.
Oryginal code:
def ajaxuserexist():
username = request.vars.values()[0]
query = db.users.name.like(username)
numres = db(query).count()
if numres > 0 :
return 'yes'
return 'no'
But when I try to implement the same solution on auth_user table for
login column it stops working:
query = db.auth_users.login.like(username)
Do you know some solution/workaround to this problem?
Best regards.