[web2py] Re: smartgrid tampering with url in browser

2017-06-26 Thread T.R.Rajkumar
Yes, Anthony I did del session.auth in logout action and it working fine. Thanks for all the input. I thought I cannot use the grid without auth. But now because of your help the dependency has been removed and I am on my own authentication. Thanks again. -- Resources: - http://web2py.com - ht

[web2py] SQLForm.factory jquery conditional fields in Views

2017-06-26 Thread Karl Florian
*Hi everybody,what is wrong with this JQuery Script?Changing the reporttype, should hide or show the incomingref field.Best regardsCharles Heinz Florian -Controllers - orderrpt.py* WHINREPS = {'CARGIN':'Cargo in stora

[web2py] Re: New plugin to integrate with SparkPost

2017-06-26 Thread Leonel Câmara
Hey, no-re...@example.com should be replaced by an email in your sparkpost sending domain, the email that you wish to use to send emails from. Later if you want to send emails with another from address you can use the sender keyword argument in the send method to use another one. > Anyway

Re: [web2py] Active Directory (ldap) authntication problem

2017-06-26 Thread Richard Vézina
Note : Don't use many differents methods of authentication, if you can... I was doing it before until I realize that my user was block/locked regularly because of automated testing... The web2py is performing multiple authentication, trying one method before shift to the other if the password is no

Re: [web2py] Active Directory (ldap) authntication problem

2017-06-26 Thread Richard Vézina
Here my conf : auth.settings.login_methods = \ [auth, ldap_auth(mode='ad', # --- # To unlock LDAPS with self-signed certificate this line should be # present in ldap_auth.py :

[web2py] Re: New plugin to integrate with SparkPost

2017-06-26 Thread anitadesmukh101
Greetings Mr. Camara, In your github post, no-re...@example.com I am assuming the sparkmail email address of the sender, should be no-reply-exam...@sparkmail.com? Anyway you know how to populate custom email address based on username? e.g., us...@sparkmail.com, us...@sparkmail.com, ...so that

[web2py] Re: Auth.signature not updating update_on

2017-06-26 Thread Anthony
auth.signature includes a modified_on field, not an update_on field. Also, if you update a record by making changes to the row object and then calling row.update_record() (with no arguments), it will update the record with all the existing values (so modified_on will not be changed). Anthony O

[web2py] Active Directory (ldap) authntication problem

2017-06-26 Thread Francisco García
Hello all, I have the following configuration to validate users with windows Active directory: auth.define_tables(username=False, signature=False) auth.settings.create_user_groups = False auth.settings.actions_disabled=['register','change_password','request_reset_password','retrieve_username',

[web2py] Auth.signature not updating update_on

2017-06-26 Thread António Ramos
Hi, my table db.define_table( 'entities', Field('uuid',length=64,default=lambda:str(uuid.uuid4())), Field('entity',required=True,label=T("Entity")), Field('description',label=T("Description"),default=""), Field('status', db.status), Field('type','reference dbentities',label

Re: [web2py] Re: Future of web2py

2017-06-26 Thread Anthony
On Monday, June 26, 2017 at 11:59:22 AM UTC-4, Richard wrote: > > I notice web2py is reported latency... What is causing this latency, js > not minify?? Ca we improve it? > Latency is just roughly the inverse of the total requests served (i.e., lower latency means more requests served). In this

Re: [web2py] Re: Future of web2py

2017-06-26 Thread António Ramos
I just got curious about Lapis 2017-06-26 16:59 GMT+01:00 Richard Vézina : > I notice web2py is reported latency... What is causing this latency, js > not minify?? Ca we improve it? > > On Mon, Jun 26, 2017 at 11:50 AM, Anthony wrote: > >> On Monday, June 26, 2017 at 11:12:17 AM UTC-4, Ron C

Re: [web2py] Re: web2py 2.15.1

2017-06-26 Thread Anthony
On Monday, June 26, 2017 at 12:04:37 PM UTC-4, Richard wrote: > > http://web2py.com/books/default/chapter/29/07/forms-and-validators#IS_DATE > > I don't know if we enforce that this formatting respect any python > standard... > > I can give a try if we can pass flatpickr parameters without issue..

Re: [web2py] Re: web2py 2.15.1

2017-06-26 Thread Richard Vézina
http://web2py.com/books/default/chapter/29/07/forms-and-validators#IS_DATE I don't know if we enforce that this formatting respect any python standard... I can give a try if we can pass flatpickr parameters without issue... Richard On Mon, Jun 26, 2017 at 11:57 AM, Anthony wrote: > On Monday,

Re: [web2py] Re: Future of web2py

2017-06-26 Thread Richard Vézina
I notice web2py is reported latency... What is causing this latency, js not minify?? Ca we improve it? On Mon, Jun 26, 2017 at 11:50 AM, Anthony wrote: > On Monday, June 26, 2017 at 11:12:17 AM UTC-4, Ron Chatterjee wrote: >> >> And If I have to guess the fastest framework is not in python. >> >

Re: [web2py] Re: web2py 2.15.1

2017-06-26 Thread Anthony
On Monday, June 26, 2017 at 10:42:33 AM UTC-4, Richard wrote: > > We could certainly do that... Things would happen in web2py.js thought, or > we bringing out flatpickr from there... But it wouldn't work properly > passing parameters time/date/datetime from validators IS_TIME(), IS_DATE(), > etc

[web2py] Re: Future of web2py

2017-06-26 Thread Anthony
On Monday, June 26, 2017 at 11:12:17 AM UTC-4, Ron Chatterjee wrote: > > And If I have to guess the fastest framework is not in python. > You don't have to guess -- all the data are at https://www.techempower.com/benchmarks/#section=data-r14&hw=ph&test=fortune&c=6&o=6 (that link includes only f

[web2py] Re: Future of web2py

2017-06-26 Thread Ron Chatterjee
And If I have to guess the fastest framework is not in python. On Monday, June 26, 2017 at 10:19:45 AM UTC-4, Anthony wrote: > > On Saturday, June 24, 2017 at 11:55:13 AM UTC-4, Ben Lawrence wrote: >> >> Thanks Massimo for outlining your plan. Would you be able to outline the >> goal? >> >> I th

Re: [web2py] Re: web2py 2.15.1

2017-06-26 Thread Richard Vézina
We could certainly do that... Things would happen in web2py.js thought, or we bringing out flatpickr from there... But it wouldn't work properly passing parameters time/date/datetime from validators IS_TIME(), IS_DATE(), etc. So we will get complaints saying that it doesn't work specifying date for

Re: [web2py] Re: web2py 2.15.1

2017-06-26 Thread Anthony
I'm not sure it would really have to support Python date formatting. Couldn't we just specify the appropriate default formats in web2py_ajax.html and then point use

[web2py] Re: Future of web2py

2017-06-26 Thread Anthony
On Saturday, June 24, 2017 at 11:55:13 AM UTC-4, Ben Lawrence wrote: > > 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 an

Re: [web2py] Re: web2py 2.15.1

2017-06-26 Thread Richard Vézina
To integrate flatpickr a flatpickr plugin should be write to support python date time string formating : http://strftime.org/ That what have been suggested by flatpickr devs : https://github.com/chmln/flatpickr/issues/886 I try to integrate flatpickr here and it get muddy along the road as I lear

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

2017-06-26 Thread Anthony
You do not need to use FORM() and INPUT() helpers just because you need to construct some custom markup for the form. Instead, use SQLFORM as usual and use the form.custom.widget widgets it generates to compose your form, as described here: http://web2py.com/books/default/chapter/29/07/forms-an

Re: [web2py] Re: vue.js

2017-06-26 Thread Anthony
Change: To: and add the following CSS rule: [v-cloak] { display: none; } That will cause the div to remain hidden until after the Vue instance has finished compiling. Anthony On Monday, June 26, 2017 at 12:10:35 AM UTC-4, Ben Lawrence wrote: > > This thread might be a little old but he

Re: [web2py] Re: web2py_component does not work with https...

2017-06-26 Thread António Ramos
Upgraded jquery to latest... working now... Also i´m not using jquery shipped with web2py I am using the latest from google CDN Will i have problems with this ? Regards 2017-06-22 15:33 GMT+01:00 Anthony : > Not sure how this would be related to things working over http vs. https, > but: > > ty

[web2py] Re: FPDF "ne commence pas par '%PDF-' "

2017-06-26 Thread J-Michel Angers
SUPER ! With thiw, it works exactly as I wish. => A message appears "Do you want to open/save/saveAs ?", and after the choice "Open", I see my PDF in the "Acrobat" tool. Thank you very much for this advice :-) :-) Le lundi 26 juin 2017 07:12:49 UTC+2, Peter a écrit : > > Have been outputting pd