[web2py] Re: Field validatio with multiple columns

2015-08-13 Thread Dave S
On Wednesday, August 12, 2015 at 8:17:45 PM UTC-7, JC wrote: Hello, I´ve the following model: db.define_table('bsc_input', Field('id_p_indicator', db.p_indicator, label=T( 'Indicator'), notnull=True), Field('current_month', 'integer', label=T('Month'),

[web2py] Re: Field validatio with multiple columns

2015-08-13 Thread Michael Beller
I really like the approach crayzeewulf used here: http://stackoverflow.com/questions/9683604/composite-key-in-web2py/9685846#9685846 On Wednesday, August 12, 2015 at 11:17:45 PM UTC-4, JC wrote: Hello, I´ve the following model: db.define_table('bsc_input',

[web2py] Re: Field validatio with multiple columns

2015-08-13 Thread Val K
Forget all what you've read there (joke) If you want this rules works anywhere and independent of any insert/update EVEN BY PROGRAM - use db.table._before_insert/update and so on (see http://www.web2py.com/books/default/chapter/29/06/the-database-abstraction-layer ) It's almost SQL-level, I

Re: [web2py] Re: Field validatio with multiple columns

2015-08-13 Thread Валерий Кучеров
OK, thank you, Dave, I've corrected my post according to your helpful suggestions Dave S snidely@gmail.com писал(а) в своём письме Thu, 13 Aug 2015 22:44:42 +0300: On Thursday, August 13, 2015 at 12:09:11 PM UTC-7, Val K wrote: Forget all what you've read there (joke) If you

[web2py] Re: Field validatio with multiple columns

2015-08-13 Thread Val K
Forget all what you've read there (joke) If you want this rules works anywhere and independent of any insert/update EVEN BY PROGRAM - use db.table._before_insert/update and so on (see http://www.web2py.com/books/default/chapter/29/06/the-database-abstraction-layer ) It's almost SQL-level, I

[web2py] Re: Field validatio with multiple columns

2015-08-13 Thread Dave S
On Thursday, August 13, 2015 at 12:09:11 PM UTC-7, Val K wrote: Forget all what you've read there (joke) If you want this rules works anywhere and independent of any insert/update EVEN BY PROGRAM - use db.table._before_insert/update and so on (see