[web2py] Re: How to get rid if the /init/default/ in the URL?

2017-10-23 Thread Dave S
On Monday, October 23, 2017 at 8:00:29 PM UTC-7, Joe wrote: > > Hi Anthony, > > My file structure on pythonanywhere looks like this: > > > /home/username/web2py/applications/my_app_directory/applications/init > > *init* being the app name. > > > The book doesn't mention using extra levels of

[web2py] Re: How to get rid if the /init/default/ in the URL?

2017-10-23 Thread Joe
Hi Anthony, My file structure on pythonanywhere looks like this: /home/username/web2py/applications/my_app_directory/applications/init *init* being the app name. In the web2py directory, I have a routes.py file which contains this code: routers = dict( BASE = dict(

[web2py] New syntax error?

2017-10-23 Thread Dave S
In my 2.15.x testing, I've been concentrating on the https interface, but I now tried to do a -M -S that would queue up a Scheduler task. And I ran into an unexpected problem with syntax errors on print statements. if when: print "ri_s: when " + when Even when I shorten the line to

Re: [web2py] Re: MySql encryption using DAL

2017-10-23 Thread appjarbiz
I am using "autossh" which is a monitor wrapper around ssh that restarts the ssh connection if it gets dropped. It appears to be working well. On Thursday, October 12, 2017 at 4:52:49 PM UTC-5, appj...@gmail.com wrote: > > I'm using Heroku. Would the VPN option be more

[web2py] Re: Update database (multiple tables) with CSV in sequence

2017-10-23 Thread Dave S
On Saturday, October 21, 2017 at 2:25:47 PM UTC-7, Matthew J Watts wrote: > > Hi all > > I'm pretty new to web2py and web development in general. I'm really stuck > with something and haven't been able to find a tutorial which can help me > out etc. I was wondering if some one could point me

Re: [web2py] confirm_registration form 'hardcoded' labels

2017-10-23 Thread Anthony
On Monday, October 23, 2017 at 1:24:44 PM UTC-4, tomasz bandura wrote: > > Thanks, > > I will try to open an issue. > > Regarding button - label is translated...strange, I'll check it why :) > Oh yeah, don't worry about that -- submit_button ends up getting wrapped in T() by the SQLFORM code.

Re: [web2py] confirm_registration form 'hardcoded' labels

2017-10-23 Thread tomasz bandura
Thanks, I will try to open an issue. Regarding button - label is translated...strange, I'll check it why :) T. 2017-10-23 19:09 GMT+02:00 Anthony : > Feel free to open an issue or submit a pull request. Note, looks like the > submit button label is hard coded as well. >

[web2py] confirm_registration form 'hardcoded' labels

2017-10-23 Thread Anthony
Feel free to open an issue or submit a pull request. Note, looks like the submit button label is hard coded as well. Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

[web2py] confirm_registration form 'hardcoded' labels

2017-10-23 Thread tomasz bandura
Hello, I have to provide translation for 'confirm registration form' and I noticed different behaviour of first_name and last_name labels ( compared to 'password' fields). So I can only provide translation for Password and Confirm Password labels. In the *gluon.tools.py *

[web2py] Re: How can i change background picture of web2py site

2017-10-23 Thread Anthony
Have you tried doing a force refresh in the browser? On Monday, October 23, 2017 at 11:00:15 AM UTC-4, Dan Carroll wrote: > > It is not that easy. I replace the background.jpg with another image and > the old image replaces my new image. Over and over. Very frustrating. > > > On Wednesday, June

[web2py] Re: How can i change background picture of web2py site

2017-10-23 Thread Dan Carroll
It is not that easy. I replace the background.jpg with another image and the old image replaces my new image. Over and over. Very frustrating. On Wednesday, June 22, 2016 at 2:56:21 PM UTC-4, Dave S wrote: > > > > On Wednesday, June 22, 2016 at 10:23:56 AM UTC-7, Filip Bogdanovski wrote: >> >>

[web2py] Re: LOAD() component redirect destroys session

2017-10-23 Thread Anthony
Hard to say without seeing your code. Nothing about a redirect affects the session, so your code must be making the changes. Anthony On Monday, October 23, 2017 at 10:13:44 AM UTC-4, Auden RovelleQuartz wrote: > > if I am on page_one that has a LOAD() component on it that runs say every > 5

Re: [web2py] Re: migrating database and updating it

2017-10-23 Thread Anthony
It's not quite clear exactly what you have copied and/or changed, so hard to say what you need to do. But in general, if you want to update your code and have the production database migrated to match the new code, you should copy everything *except* the contents of the /databases directory

[web2py] LOAD() component redirect destroys session

2017-10-23 Thread Auden RovelleQuartz
if I am on page_one that has a LOAD() component on it that runs say every 5 seconds (timeout = 5000) and if while on that page I have session.parameter_one = some value session.parameter_two = some value session.parameter_three = some value if based on certain conditions the component

Re: [web2py] Re: migrating database and updating it

2017-10-23 Thread Vid Ogris
Hello So as said I copied the whole app directory to my new server, also restored my database on postgres. First my settings for migrate and false_migrate are set to False and immediately I get an error: relation of table auth_user already exists. I set the migrate for this table

Re: [web2py] Logger issue

2017-10-23 Thread Kiran Subbaraman
Yes, I suggested the OP configure one for their specific app, using the example app's config as a template. Need not configure this in the code, for every request ... as they are doing so now. Kiran Subbaraman http://subbaraman.wordpress.com/about/ On

Re: [web2py] Logger issue

2017-10-23 Thread Dave S
On Sunday, October 22, 2017 at 9:19:02 PM UTC-7, Kiran Subbaraman wrote: > > configuring the logger for every thread (`current.logger = logger`), and > this seems unnecessary. > Take a look at this logging configuration: >

[web2py] Re: Custom maintenance message

2017-10-23 Thread Dave S
On Saturday, October 21, 2017 at 12:17:53 AM UTC-7, 黄祥 wrote: > > learn from anthony respond in stackoverflow it is in routes.py in web2py > root folder not in app root folder (tested using routes.py in app root > folder is not work, no error occured but the result is not expected) > I'm not

Re: [web2py] Re: maybe too many db connections todb on pythonanywhere

2017-10-23 Thread Manuele Pesenti
Thanks Alex, that's what I get from the db engine about my maximum number of connections: psql (9.4.11, server 9.4beta3) Type "help" for help. postgres=# SHOW max_connections;  max_connections -  20 (1 row) reading the suggested wiki page I found this: "PostgreSQL on good

Re: [web2py] Open a form (form=SQLFORM(db.marks)) for a selected person by clicking on a link of their name

2017-10-23 Thread mostwanted
Thanks alot Javier, it worked On Sunday, October 22, 2017 at 4:16:57 PM UTC+2, Javier Pepe wrote: > > Hi > > You can fill the record before SQLFORM > > def marks_entry(): > stu=db.student(request.args(0)) > > *db.marks.students.default = stu.id * >