Re: [web2py] validator for valid SQL table name

2012-02-05 Thread Manuele Pesenti
Il 05/02/2012 15:58, Manuele Pesenti ha scritto: ok thanks again Bruno, I solved defining this subsequent custom validator with some cut&paste code from dal.py as suggested: I beg your pardon too many bugs in my previous code and not enough test... that's a better solution: in modules/plugi

Re: [web2py] validator for valid SQL table name

2012-02-05 Thread Manuele Pesenti
Il 03/02/2012 11:03, Bruno Rocha ha scritto: look the code in dal.py referencing check_reserved, you can copy patterns and dicts from there in to your validator. http://zerp.ly/rochacbruno ok thanks again Bruno, I solved defining this subsequent custom validator with some cut&paste code fr

Re: [web2py] validator for valid SQL table name

2012-02-03 Thread Manuele Pesenti
Il 03/02/2012 11:03, Bruno Rocha ha scritto: look the code in dal.py referencing check_reserved, you can copy patterns and dicts from there in to your validator. Hi Bruno, thanks for the replay... I've already tryed to look inside dal.py but it was not so clear how to translate it's behaviour

Re: [web2py] validator for valid SQL table name

2012-02-03 Thread Bruno Rocha
look the code in dal.py referencing check_reserved, you can copy patterns and dicts from there in to your validator. http://zerp.ly/rochacbruno Em 03/02/2012 06:41, "Manuele Pesenti" escreveu: > Hi! > Can you suggest me how can I write a validator for sql table names? > > I mean... I have a plug

[web2py] validator for valid SQL table name

2012-02-03 Thread Manuele Pesenti
Hi! Can you suggest me how can I write a validator for sql table names? I mean... I have a plugin that let me define tables and fields through the web interface saving their name and parameters in the db itself. So I have a "meta" table for the tables I want to define. I'm looking for a good v