[web2py] Re: Encoding problem with a web2py application that implements an XMLRPC webservice

2019-07-06 Thread Dave S
On Thursday, July 4, 2019 at 2:04:49 PM UTC-7, Lisandro wrote: > > I presumed that I could add "# -*- coding: utf-8 -*-" and forget about > the encoding problems. > > What should I do? > I believe that line only specifies that the source code is in utf-8. You probably need to use a codec, w

[web2py] Routes on error and ajax bug

2019-07-06 Thread Alfonso Serra
I have been able to reproduce a bug with the welcome app when routes on error is in use on localhost: Steps to reproduce: 1.- create an app "myapp" 2.- create another app "errors" 3.- Edit routes.py default_application = 'myapp'# ordinarily set in base routes.py default_controller = 'index'

[web2py] how to declare variable shared between different controllers??

2019-07-06 Thread Ali Mhrez
How to declare variable shared between different controllers, I think models are a the right place, right?? if true how could i change the value of that variable from a controller so that all other controllers know the new value?? -- Resources: - http://web2py.com - http://web2py.com/book (Doc

[web2py] Re: Encoding problem with a web2py application that implements an XMLRPC webservice

2019-07-06 Thread Alfonso Serra
sys.setdefaultencoding will work thorough the server execution process. So as long it is alive you wont need to call it several times. It will probably work if you set that up on routes.py or web2py.py so its not called per request. As long as it fixes your problem i wouldnt care whether it is

[web2py] please help testing web3py

2019-07-06 Thread Massimo Di Pierro
Let's test the dashboard today: # download web2py from pypi python3 -m pip install web3py # start it: web3py-start myapps (pick a one time password and answer yes when it wants to create something, it will create myapps folder and a temp .web3py-service folder) # open browser http://127.0.

[web2py] Re: Can I limit wiki articles visibility only for logged in users.

2019-07-06 Thread Massimo Di Pierro
There Wiki constructor has a manage_permissions=False argument. If you set it to True you can set permissions for pages via the UI. Which users/groups can create/view/edit pages. On Friday, 5 July 2019 06:55:16 UTC-7, Dragan Matic wrote: > > As the title says, I would like to limit visibility of