On Feb 16, 8:26 am, mdipierro <[email protected]> wrote: > On Feb 15, 10:00 pm, BigBaaadBob <[email protected]> wrote:
> > It might help if there was better documentation for IS_NOT_IN_DB +100 better docs. We need to centralize this. How can we organize this task?. I am eager to participate. I see this as a stalling factor to web2py's growth. > > because this trick is a little hard (for me at least) to wrap your > > head around. The current docstring says: "INPUT > > (_type='text',_name='name',requires=IS_NOT_IN_DB(db,db.table))". > > > As I understand it this does the moral equivalent of "SELECT > > events.name WHERE db.events.competition==request.vars.competition AND > > events.name==value" and checks if anything is returned? > > yes. although it uses count, not select. I think it uses select(limitby=(0, 1)) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

