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
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'
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
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
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.
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
6 matches
Mail list logo