[web2py] IS_NOT_ID_DB for mutliple fields

2017-01-21 Thread Yebach
Hello I have to make a validator on my SQLFORM that checks 4 fields my table is db.define_table('workers_skills', Field('ws_organisation', type ='integer'), Field('ws_worker', 'reference workers', label = T('Worker')), Field('ws_skill', 'reference

[web2py] Store dates in UTC format across all tables

2017-01-21 Thread Gaurav Vichare
I want to store created_on and modified_on values of all tables in UTC format. Audit fields are added using db._common_fields.append(auth.signature) and in auth.signature default value for created_on and modified_on is request.now, I want to change it to request.utcnow. So I tried following bu

[web2py] Re: Advice on structuring my app

2017-01-21 Thread Val K
Hi, here is my solution: There are some abstract *actions *like view/edit/delete/upload/download and so on There are the *roles *that define combinations of the actions - it's the table that has 'value' bit field - each bit corresponds to the action There are the *groups *and two symmetric rela

[web2py] Grid

2017-01-21 Thread Bishal Saha
Cant we use grid to update few rows ? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google G

[web2py] Re: Arbitrary args/kwargs with service?

2017-01-21 Thread Anthony
> I created an issue here: https://github.com/web2py/web2py/issues/1561 > > I can probably do a pull request, but wanted to see if anyone knows of a > reason why the existing service functionality restricts the passed > arguments, instead of just passing them all to the service function, as >

[web2py] Re: Conditional validation

2017-01-21 Thread Andrea Fae'
Where can I find conditional validation documentation? Il giorno venerdì 20 gennaio 2017 17:22:14 UTC+1, Andrea Fae' ha scritto: > > Hello guys, I need to have a dependent field in a table. > If the field "is_active" = True then I cannot insert in the field "date" > nothing. > If the field "is_at

[web2py] Re: Conditional validation

2017-01-21 Thread Anthony
On Friday, January 20, 2017 at 11:22:14 AM UTC-5, Andrea Fae' wrote: > > Hello guys, I need to have a dependent field in a table. > If the field "is_active" = True then I cannot insert in the field "date" > nothing. > If the field "is_atvie" = False then I can or not insert something in the > fie

[web2py] Re: About session variable

2017-01-21 Thread Dave S
On Friday, January 20, 2017 at 9:14:00 AM UTC-8, Anthony wrote: > > See http://stackoverflow.com/a/41769011/440323. > > On Friday, January 20, 2017 at 6:09:31 AM UTC-5, Bishal Saha wrote: >> >> I have stored a dictionary in the session variable and now I want to >> store the values of the dictio

[web2py] Re: About session variable

2017-01-21 Thread Dave S
On Saturday, January 21, 2017 at 11:11:23 PM UTC-8, Dave S wrote: > > > > On Friday, January 20, 2017 at 9:14:00 AM UTC-8, Anthony wrote: >> >> See http://stackoverflow.com/a/41769011/440323. >> >> On Friday, January 20, 2017 at 6:09:31 AM UTC-5, Bishal Saha wrote: >>> >>> I have stored a dictionar