[web2py] Correct way to put libraries in site-package folder?

2018-03-16 Thread Jaison Raj
Hi, I am trying to create a binary application (after compiling and packaging from windows). In my controller, i am importing a library :"import xml.etree.cElementTree as ET". I placed the files cElementTree.py and cElementTree.pyc in etree folder as follows: \web2py\site-packages\xml\etree.

Re: [web2py] Re: How to verify woocommerce webhook signature in web2py auth decorator

2018-03-16 Thread Manuele Pesenti
On 15/03/2018 22:17, Manuele Pesenti wrote: You might be better off getting help from folks who know WooCommerce, as this issue does not appear to be web2py specific. Yes for sure! Thanks a lot.     M. Before to definitely fly to other places where to find answers to my problem I have one

[web2py] Re: LOAD an routes_onerror

2018-03-16 Thread 'Annet' via web2py-users
Hi Anthony, Thanks for your reply. Have you tried redirect(..., client_side=True) in your error handler? > The error handler error/default/index contains the following lines of code: def index(): session.forget(response) response.title = 'Leonexus - Error handler' return

[web2py] Re: Correct way to put libraries in site-package folder?

2018-03-16 Thread Anthony
Do you have empty __init__.py files inside those two subfolders? On Friday, March 16, 2018 at 6:34:02 AM UTC-4, Jaison Raj wrote: > > Hi, > I am trying to create a binary application (after compiling and packaging > from windows). > In my controller, i am importing a library :"import

[web2py] Re: LOAD an routes_onerror

2018-03-16 Thread Anthony
The redirect would go in the /error/default/index controller action. It sends a 200 response to the browser with a special header instructing web2py.js to do a client-side redirect (i.e., load a new URL in the address bar). Anthony On Friday, March 16, 2018 at 5:25:10 AM UTC-4, Annet wrote: >

Re: [web2py] Re: Off Topic:Pony

2018-03-16 Thread António Ramos
The only thing that caught my attention was Write your database queries using Python generators & lambdas 2018-03-16 11:32 GMT+00:00 Leonel Câmara : > Pony does not support postgis. I could not use pony. pyDAL also supports > quite a bit more databases. > > -- >

Re: [web2py] Re: How to verify woocommerce webhook signature in web2py auth decorator

2018-03-16 Thread Anthony
> > Before to definitely fly to other places where to find answers to my > problem I have one little question related with web2py... > In woocommerce documentation they say this about request signature: > > "X-WC-Webhook-Signature - a base64 encoded HMAC-SHA256 hash of the > payload."[1] > >

Re: [web2py] auth.settings.actions_disabled.append('register')

2018-03-16 Thread Andrea Fae'
Do you mean that, like in the other versions, it shoud be enogh only to write auth.settings.actions_disabled.append('register') and nothing more? I see "password smarrita" in the menu and clicking it I see the same error 404 NOT FOUND and it points to "request_password" controller. Why if in the

Re: [web2py] auth.settings.actions_disabled.append('register')

2018-03-16 Thread Andrea Fae'
In layout.html there is an error... wrong right {{=T('Lost Password')}} Il giorno venerdì 16 marzo 2018 20:07:27 UTC+1, Andrea Fae' ha scritto: > > Do you mean that, like in the other versions, it shoud be enogh only to > write

[web2py] Re: Issue with defaultdict(list)

2018-03-16 Thread Drew Howell
After taking a break and working on another section, I finally found what was causing the issue. There was, indeed, an error elsewhere within that controller, which was causing me all the headache. I appreciate your guys' help! Thanks. On Sunday, March 11, 2018 at 11:14:27 PM UTC-4, Drew

[web2py] Re: Correct way to put libraries in site-package folder?

2018-03-16 Thread Jaison Raj
Hi Anthony, Yes i have empty __init__.py files in each folders. I tried to use "import xml.etree.ElementTree as ET". (instead of cElementTree) it works. Now i am having problem importing another library: Plotly the trace back as follows; Traceback 1. 2. 3. 4. 5. 6. 7. 8. Traceback (most

[web2py] Re: Off Topic:Pony

2018-03-16 Thread Leonel Câmara
Pony does not support postgis. I could not use pony. pyDAL also supports quite a bit more databases. -- 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) ---