Validators are evaluated when using DAL standalone, only if you use these two methods:
db.validate_and_inset(...) instead of .insert() and just in trunk.. db.validate_and_update(..) instead of .update() I am working now on a new patch for Rows.validade_and_update_record(...) BTW: You can always make your own logic using validators in this way: *In [7]:* IS_NOT_EMPTY()([]) *Out[7]: *([], <lazyT 'enter a value'>) * * *In [8]:* IS_NOT_EMPTY()([1,2,3]) *Out[8]: *([1, 2, 3], None) Returns a tuple with 2 values, the first will be the passed arg, the second will be None if it passes, and will be a T('error message') when it is invalidated. -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] On Tue, Jun 21, 2011 at 11:16 PM, mart <msenecal...@gmail.com> wrote: > Hi, > > can validators such as IS_IN_DB(db,'<table>.id') be used outside of > the web context (dal stand alone) ? Maybe there is a key word or > something ? :) > > thanks again, > Mart :)