Re: [web2py] Re: Partial flush of request

2016-10-02 Thread Luis Valladares
Because my application has a microservice architecture, this means there is another app storing the token in the database and the only thing my web2py front end does is make a http request to that microservice and format the received data, but if during that formatting some exception is raised I lo

[web2py] Help needed to understand/utilise a CSS element

2016-10-02 Thread Peter
Would anyone haver time to explain briefly how to utilise this CSS code. /* Global Event Styles */ .fc-event, .fc-agenda .fc-event-time, .fc-event a { border-style: solid; border-color: #36c; /* default BORDER co

Re: [web2py] Re: Partial flush of request

2016-10-02 Thread Anthony
On Sunday, October 2, 2016 at 7:52:04 AM UTC-4, Luis Valladares wrote: > > Because my application has a microservice architecture, this means there > is another app storing the token in the database and the only thing my > web2py front end does is make a http request to that microservice and > f

[web2py] Re: Help needed to understand/utilise a CSS element

2016-10-02 Thread Marlysson Silva
You need that each type event change with a type backgroud specific? You should to create styles to each type and to use by javascript or jquery handle events and change background of element wished .. What do you need do? Em domingo, 2 de outubro de 2016 12:28:12 UTC-3, Peter escreveu: > > > >

[web2py] Re: Help needed to understand/utilise a CSS element

2016-10-02 Thread Peter
Thanks Marlysson, Assuming row.task_typecan be one of [ 'TRAINING' , 'MEETING' , 'PROJECT_WORK''] I want to the event background to be RED GREEN or BLUE respectively. Do I add code something like this to the CSS file .myclass, .fc-agenda .myclass .fc-event-time, .myclass TRAI

[web2py] Re: Help needed to understand/utilise a CSS element

2016-10-02 Thread Marlysson Silva
First , in css , the classes are defined with "." before name them , then it's so : .trainning , .project_work With this answer : http://stackoverflow.com/questions/31322105/full-calendar-rails-adding-custom-css-classes-to-events/33894043#33894043 It's possible to use a custom function in

[web2py] Re: Help needed to understand/utilise a CSS element

2016-10-02 Thread Marlysson Silva
First , in css , the classes are defined with "." before name them , then it's so : .trainning , .project_work With this answer : http://stackoverflow.com/questions/31322105/full-calendar-rails-adding-custom-css-classes-to-events/33894043#33894043

[web2py] Re: Help needed to understand/utilise a CSS element

2016-10-02 Thread Peter
Thanks again Marlysson! Okay, I've tried a few configurations (a lot actually) and came up with this which doesn't work (but it doesn't crash either - it breaks the view by showing no calendar entries) It's probably too influenced by my python formatting and flow*! Regardless, I can't f

[web2py] Scheduler - response.render no longer working

2016-10-02 Thread Brian M
OK, so I've had multiple scheduled tasks running for years that use response.render('path/to/template.html', dict(var= 'something')) to help build email bodies and it has been working perfectly. Now when I try to upgrade to the latest web2py trunk (was on 2.13.4 - yeah I'm a bit behind) all tha

Re: [web2py] Re: Partial flush of request

2016-10-02 Thread luis . valladares
The second sounds good to me, but i dont know really where to store it, my front end is REST and has no database connected to it, all the info i get its from microservices, so i need some sort of variable or environment space where to store the token when i receive it and retrieve it in the cas

[web2py] Under Scheduler request.is_scheduler is None rather than True - Why?

2016-10-02 Thread Brian M
Is there a reason why when something is run under the scheduler request.is_scheduler = None rather than True? When you access request.is_scheduler from outside of the scheduler you get False as one would expect. The current None value seems strange/non-intuitive. #this won't work if request.is_s

[web2py] validate_and_insert() doesn't work for compute field

2016-10-02 Thread Yang
Hello, It seems that validate_and_insert() doesn't work for compute field. For example, db.define_table('test', Field('x', 'float'), Field('y', 'float', compute=lambda r: r['x'] * 2)) db.test.validate_and_insert(x=1) gives db.test.insert(x=1