because the return of a select is a SQLRows object. You are trying to compare a string (value) with it and it cannot be done.
On Apr 8, 11:31 pm, waTR <[email protected]> wrote: > Code: > requires=[IS_NOT_EMPTY(), IS_EXPR('value!=%s' % repr(db > (db.db_users.dbu_name==request.vars.nick).select()), "Username already > exists")] > > I keep getting the following error: > File "<string>", line 1 > __ret__=value!=<gluon.sql.SQLRows object at 0x1709b7b0> > ^ > SyntaxError: invalid syntax > > Why can't I use python's != condition? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

