Re: [web2py] Re: sending html emails.... bug ...

2018-06-04 Thread António Ramos
Hello Massimo , i´m using the code from your tutorials. Then i adapted to add an html template. I guess google as a thing with base64 images... 2018-06-01 20:58 GMT+01:00 Massimo Di Pierro : > Very strange. Can you show us the code to generate the email and the html > in the email? > > > On Wedn

[web2py] password reset does not redirect to correct page

2018-06-04 Thread Yebach
Hello After the password reset link is received in my mail and I follow the link to MyApp i/default/user/reset_password/1528115334-1104060c-6c13-4715-a153-d19a9f532085 I am

[web2py] Re: Web2py locks row at auth_user and web2py_session_* tables and doesn't unlock them

2018-06-04 Thread Lisandro
I just wanted to confirm that the problem was apparently solved after upgrading web2py to version 2.16.1 and also upgrading Redis to latest stable 64bit version (version 1.8.1). The app has been running for a couple of weeks now and the problem didn't arise. I truly sorry having bothered you wit

[web2py] Re: sending html emails.... bug ...

2018-06-04 Thread Leonel Câmara
3D is the hex for 61 which is the ascii table position for "=". So that's normal in quoted-printable where a character is encoded by = followed by the hex. Base64 images are simply not well supported by many email clients. You should use cid and put the images in attachments which works cor

[web2py] Re: European General data protection act and web2py

2018-06-04 Thread Leonel Câmara
Note that the way web2py uses cookies by default, which is simply to make forms safe. Is allowed and does not requires an explicit consent for cookies, even under the new GDPR rules. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (So

[web2py] Re: European General data protection act and web2py

2018-06-04 Thread Massimo Di Pierro
Thanks for clarifying this Leonel. I am glad GDPR makes an exception for this. On Monday, 4 June 2018 08:32:47 UTC-5, Leonel Câmara wrote: > > Note that the way web2py uses cookies by default, which is simply to make > forms safe. Is allowed and does not requires an explicit consent for > cooki

[web2py] reloading a signed component from parent using JS

2018-06-04 Thread Umbromancer
Hi, I'm trying to reload a signed component passing parameters to it. Everything works great until I @auth.requires_signature() in the component action. The LOAD is: {{=LOAD('opportunity', 'listops.load', target='oplist', ajax=True, user_signature=True)}} var url = jQuery('#oplist').get(0).da

[web2py] Even though I have added by password in the Wb2py it does not allow to get in and it throw error....

2018-06-04 Thread sriram pm
Hi Team, Even though I have added by password in the Wb2py it does not allow to get in and it throw error in the admin window. Please help. Regards, Sriram. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://cod

[web2py] Getting Error ModuleNotFoundError: No module named 'urllib2'

2018-06-04 Thread Suhas Jadhav
Hi, I am getting error ModuleNotFoundError: No module named 'urllib2' My Code is def test(): import ldap from urllib.request import urlopen import urllib2 import urllib auth.settings.actions_disabled=['register','change_password','request_reset_password','retrieve_username'

[web2py] Re: Even though I have added by password in the Wb2py it does not allow to get in and it throw error....

2018-06-04 Thread 黄祥
pls tell us the error and your code best regards, stifan -- 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 subscr

[web2py] Re: Getting Error ModuleNotFoundError: No module named 'urllib2'

2018-06-04 Thread 黄祥
ref: https://docs.python.org/2/library/urllib2.html https://stackoverflow.com/questions/2792650/import-error-no-module-name-urllib2 best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.googl

[web2py] Re: Getting Error ModuleNotFoundError: No module named 'urllib2'

2018-06-04 Thread Marcelo Huerta
El lunes, 4 de junio de 2018, 10:44:37 (UTC-3), Suhas Jadhav escribió: > > > web2py™ Version 2.16.1-stable+timestamp.2017.11.14.05.54.25 > > PYTHON Python 3.6.2 > > > Any solution or workaround? > Using proper Python3 code? Module urllib2 does not exist in Python 3. -- Resources: - http://web2p

[web2py] Re: reloading a signed component from parent using JS

2018-06-04 Thread Anthony
> > I'm trying to reload a signed component passing parameters to it. > Everything works great until I @auth.requires_signature() in the component > action. > > The LOAD is: > > {{=LOAD('opportunity', 'listops.load', target='oplist', ajax=True, > user_signature=True)}} > > var url = jQuery('#opl

[web2py] Re: Getting Error ModuleNotFoundError: No module named 'urllib2'

2018-06-04 Thread Suhas Jadhav
Yes, I say the documentation. But issues here is urllib2 works well from my python console. the error happens when web2py tries to call it. My code is not calling it directly. I believe ldap_auth library calling urllib2 internally and faile. Thanks, Suhas On Monday, 4 June 2018 06:44:37 UTC-7,

[web2py] Re: reloading a signed component from parent using JS

2018-06-04 Thread Umbromancer
On Monday, June 4, 2018 at 5:16:33 PM UTC+1, Anthony wrote: > > I'm trying to reload a signed component passing parameters to it. >> Everything works great until I @auth.requires_signature() in the >> component action. >> >> The LOAD is: >> >> {{=LOAD('opportunity', 'listops.load', target='oplist'

[web2py] USING MODAL

2018-06-04 Thread Ayron Rangel
Guys!! I need help!! How can I use "MODAL" to edit a value?? Follow my code: -controller: def table_ufs(): form = SQLFORM(db.uf) if form.process().accepted: session.flash = 'REGISTRATION SAVED SUCCESSFULLY' redirect(URL('table_ufs')) elif form.errors: resp

[web2py] Loading Scheduler Configuration On-the-Fly

2018-06-04 Thread Bryan Chance
So I'm working to consolidate severall web2py apps that share ~85% of their code. They each have their own configurations, databases, etc. I accomplish this by using routes.py to map myurl.com/client_name to myurl.com/consolidated_app?client_name=client_name Then request.vars.client_name allows

Re: [web2py] Re: Getting Error ModuleNotFoundError: No module named 'urllib2'

2018-06-04 Thread Marcelo Huerta
2018-06-04 14:54 GMT-03:00 Suhas Jadhav : > > Yes, I say the documentation. But issues here is urllib2 works well from my > python console. The Python3 console? Unless you have done something weird, urllib2 cannot work in the Python3 console *because the module does not exist*. The proper course

[web2py] Select ALL products

2018-06-04 Thread Ayron Rangel
Guys, me again o.O How can I select all products according to the same model? I'm using modal to show the products (When I click on Magnifying Glass) Follow my code: Controller: def table_stock(): somar = db.products.unit_price.sum() count = db.products.id.count() query = (db.stoc

[web2py] Re: Loading Scheduler Configuration On-the-Fly

2018-06-04 Thread Bryan Chance
I believe I might be able to queue the task with application set to the context I want it ran in, and then in db.py set request.vars.client to request.application On Monday, June 4, 2018 at 1:55:42 PM UTC-5, Bryan Chance wrote: > > So I'm working to consolidate severall web2py apps that share ~8

[web2py] Re: Loading Scheduler Configuration On-the-Fly

2018-06-04 Thread Dave S
On Monday, June 4, 2018 at 1:18:45 PM UTC-7, Bryan Chance wrote: > > I believe I might be able to queue the task with application set to the > context I want it ran in, and then in db.py set request.vars.client to > request.application > I only set default application in my routes.py, so my re

[web2py] Re: Getting Error ModuleNotFoundError: No module named 'urllib2'

2018-06-04 Thread Dave S
On Monday, June 4, 2018 at 10:54:01 AM UTC-7, Suhas Jadhav wrote: > > Yes, I say the documentation. But issues here is urllib2 works well from > my python console. > the error happens when web2py tries to call it. > My code is not calling it directly. I believe ldap_auth library calling > urlli