[web2py] New plugin to integrate with SparkPost

2017-06-24 Thread Leonel Câmara
I've seen a lot of people having trouble integrating with sparkpost, I actually want to start using it too, so I made a plugin: https://github.com/leonelcamara/web2py_sparkpost Enjoy! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

[web2py] Re: Implementing Token Based authentication JWT

2017-06-24 Thread Oasis Agano
Thank you for your useful answer but how do i pass the username and password because curl with them returns: *Invalid JWT header* when i try to get the login_and_take_token function. kr, Oasis On Friday, June 23, 2017 at 11:09:43 PM UTC+2, Dave S wrote: > > > > On Friday, June 23, 2017 at

[web2py] Re: Future of web2py

2017-06-24 Thread Ben Lawrence
Thanks Massimo for outlining your plan. Would you be able to outline the goal? I think web2py's goal is a framework that is easy to start and program, and great for teaching purposes. Great for hobbyists, students and small company websites with up to 1000 clicks per day or so. Am I wrong?

[web2py] Re: Broken pipe with mysql

2017-06-24 Thread Alexia Death
This is still an issue. If for whaterver reason db backend closed the connection my shell running daemon script will be stuck in 100% cpu consuming exception loop and no way to make the model re-establish the db connection even if I do catch the exception. As an ugly workarund I could drop out

[web2py] Re: smartgrid tampering with url in browser

2017-06-24 Thread Anthony
To remove items from the session, don't simply set their values to None. In that case, the key will remain in the session, simply with None stored as its value. Instead, to get rid of a given item completely, delete it: del session.auth Alternatively, you could change the condition: if not

[web2py] Re: Some row questions

2017-06-24 Thread villas
> I've kinda already done that. No tee-shirt appeared. > > Funny that, I spent time making suggestions and no thanks appeared. I guess we don't always get what we'd like. So why doesn't enumerate() provide an index? Or, maybe that's not the kind of index you wanted? If you add

Re: [web2py] Re: Future of web2py

2017-06-24 Thread João Gulineli
Dear all, in my humble opinion I believe that web3py should have something to import external modules like in django (plugable apps). I know that in web2py we have plugins but I believe that this isn't so good because we don't have so many developer sharing their codes in that way that we have few

[web2py] Re: How to use FORM, INPUT to create a field with dropdown list?

2017-06-24 Thread villas
If you are building a FORM with lower-level components, you might also wish to use: SELECT( OPTION('text1', _value='1'), OPTION('text2', _value='2') ) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: smartgrid tampering with url in browser

2017-06-24 Thread T.R.Rajkumar
Now I have ant\other small hitch. When I logout the action logout is called and redirect to login page. If I or another user logins in with the same browser window digital signature is not available in grid. If I close the browser window and open the browser and login _signature is

[web2py] Re: smartgrid tampering with url in browser

2017-06-24 Thread T.R.Rajkumar
Yes, perfect Anthony. Thanks a lot for forbearing with me. Anyway it is my pleasure to learn from the group. I put the above code in my login action as below. It is working perfectly. from gluon.storage import Storage from gluon.utils import web2py_uuid def login(): form = FORM(TABLE(