[web2py] Re: Retrieving values from appconfig.ini to a view

2018-10-30 Thread 黄祥
pls try in views/layout.html (untested) {{=appconf.take("app.version") }} 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 receiv

[web2py] Re: Mongodb Error

2018-10-30 Thread 黄祥
from the error traceback seems like a problem with a connection to mongodb, wrong password or username, pls ensure the authentication to mongodb connection is correct best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2

[web2py] Re: Retrieving values from appconfig.ini to a view

2018-10-30 Thread Dave S
On Tuesday, October 30, 2018 at 7:41:09 AM UTC-7, Francis Windram wrote: > > Good Evening, > > I'm a relative newby to web2py, but with a few years of Python under my > belt and old knowledge of HTML (from the pre-HTML5 days). > > When I deploy a new release, part of the procedure is to update t

[web2py] Re: STYLE() function has been changed in 2.17.2

2018-10-30 Thread Dave S
On Tuesday, October 30, 2018 at 12:49:48 PM UTC-7, A3 wrote: > > Python version 2.7.6 > The reason I ask is because the "bytes expected" message makes me think this is a corner of the Py3 adaptation that might not have been tested much. /dps -- Resources: - http://web2py.com - http://web2p

[web2py] Re: Multiprocessing and Web2py Scheduler

2018-10-30 Thread Dave S
On Tuesday, October 30, 2018 at 7:41:09 AM UTC-7, Daniel R. wrote: > > Hello, > > I've been working on an application in Web2py for a while now and, for the > most part, I've been able to find answers to my questions online. However, > I am having trouble now trying to figure out if I can use P

[web2py] Re: STYLE() function has been changed in 2.17.2

2018-10-30 Thread A3
Python version 2.7.6 Op dinsdag 30 oktober 2018 20:28:53 UTC+1 schreef Dave S: > > > > On Tuesday, October 30, 2018 at 4:15:49 AM UTC-7, A3 wrote: >> >> I recently upgraded to 2.17.2 and now I noticed that some of my apps >> functions don't work anymore. >> in the past I used e.g.: STYLE(XML('b

[web2py] Re: STYLE() function has been changed in 2.17.2

2018-10-30 Thread Dave S
On Tuesday, October 30, 2018 at 4:15:49 AM UTC-7, A3 wrote: > > I recently upgraded to 2.17.2 and now I noticed that some of my apps > functions don't work anymore. > in the past I used e.g.: STYLE(XML('body {color: white}')) > this caused an error: (Expected bytes) > > after removing XML() you

[web2py] Multiprocessing and Web2py Scheduler

2018-10-30 Thread Daniel R.
Hello, I've been working on an application in Web2py for a while now and, for the most part, I've been able to find answers to my questions online. However, I am having trouble now trying to figure out if I can use Python multiprocessing along with the Scheduler in Web2py in the way that I need

[web2py] Re: off topic: pg_dump syntax for pythonanywhere

2018-10-30 Thread Alexandra Lee
Could you post what the correct syntax is please? It is 2018 and pythonanywhere has corrected --username but I am having a problem with --file and database. In psql help -file seems to be for the file from which to execute not the file to which to write. So I remain confused ! On Wednesday, 3

[web2py] Re: Auth question

2018-10-30 Thread fjbernal2020
Hi, I think the easier way is here http://web2py.com/books/default/chapter/29/09/access-control > ## after auth = Auth(db) > > > db.define_table('workspaces', > > Field('workspace', 'string', requires=IS_NOT_EMPTY())) > > auth.settings.extra_fields['auth_user']= [ > Field('workspace

Re: [web2py] Creating a CSV backup for the database file in the app

2018-10-30 Thread Francis Windram
You should just be able to use a relative path, i.e. "./static/dbbackup/backup.csv" rather than "C:/Users/me/Desktop/web2py/applications/webapp1/static/dbbackup/backup.csv". ("../" would take you to one folder above where you started, and "../../" would go two folder levels up. ) You may need to

[web2py] Retrieving values from appconfig.ini to a view

2018-10-30 Thread 'Francis Windram' via web2py-users
Good Evening, I'm a relative newby to web2py, but with a few years of Python under my belt and old knowledge of HTML (from the pre-HTML5 days). When I deploy a new release, part of the procedure is to update the version line in appconfig.ini, e.g.: [app] appname = Webapp version = 1.0.0 to

[web2py] Mongodb Error

2018-10-30 Thread lbjc1978
I'm trying to use MongoDB for the first time. I looked at this link as one of the guidance. but ended up with an error. My code below: from gluon import current from pymongo import MongoClien

[web2py] STYLE() function has been changed in 2.17.2

2018-10-30 Thread A3
I recently upgraded to 2.17.2 and now I noticed that some of my apps functions don't work anymore. in the past I used e.g.: STYLE(XML('body {color: white}')) this caused an error: (Expected bytes) after removing XML() you can use STYLE('body {color: white}') but it gives the following output: <