Re: [web2py] web3py -> py4web

2019-07-31 Thread Manuele Pesenti
I'm loving it! Thanks again Massimo     Manuele On 24/07/19 07:40, Massimo Di Pierro wrote: OK. I know. I am not good with names. But there are lots of requirements to be fulfilled. py4web.com was available and the pypi package was available. Here is running on google cloud: http://py4web.com/

[web2py] py4web and record versioning

2019-07-31 Thread Manuel Vio
Hi, I'm testing py4web and I'm stuck with record versioning. If in models.py I define a trivial table with versioning enabled like this: ### Define you table below # # db.define_table('thing', Field('name')) # ## always commit your models to avoid problems later # # db.commit() # db.define_tabl

[web2py] Re: py4web and record versioning

2019-07-31 Thread Manuel Vio
Ok, I narrowed the problem a bit: In py4web/core.py, around line 207, there is this adjustment in order to make some variables threadsafe: # make sure some variables in pydal are thread safe for _ in ['readable', 'writable', 'default', 'update', 'requires']: setattr(pydal.DAL.Field, _, threadsaf

Re: [web2py] Re: customizing menu items when MENU helper is used

2019-07-31 Thread Eliezer (Vlad) Tseytkin
It's not really about a menu as a whole (that would be easy). It's about dynamically changing the background color for each menu item individually. In this context I can't pass neither style nor class (in contrast with, for example a list helper where elements/options are made up of another helper

[web2py] Hosting question

2019-07-31 Thread Rahul
Hi All, This may sound silly but I have a hosting question - I am already hosting two of my web2py sites on personal VPS server. And I only want anyone who access it to these sites only. I have multiple applications running under same web2py and two of which I use as separate domains. I h

[web2py] GEVENT error even for imports

2019-07-31 Thread Rahul
Hi All, I am getting gevent error even only when doing import on production linux machine (Debian 9.5) . I am trying to register a new user and I use recaptcha2 for that. File "/home/www-data/web2py/applications/application/controllers/default.py", line 4222, in register if form.accepts(

[web2py] Tables in Appadmin/index have disappeared

2019-07-31 Thread mostwanted
I have somehow suddenly lost my tables in appadmin, they have just disappeared & i don't know where to!!! How can i retrieve them & why have they disappeared?? Regards; Mostwanted -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Sou

[web2py] Re: Hosting question

2019-07-31 Thread Jose C
> I want to avoid this and the users must only get redirected to the two sites that are hosted. What should I do ? Two options. 1) remove the default welcome app from your live server (simply delete the directory). 2) Add this key to your BASE dict (which basically tells web2py which apps are

[web2py] Migration not creating new fields/tables after restore from an old backup the database

2019-07-31 Thread Ur. Kr.
This are my migration settings: DAL(settings.database_uri, migrate=True, fake_migrate_all=True) When I add new tables of fields on the development version of the app they are added properly. However, if I create a backup of the production database (missing the newly added fields/tables) and I us

[web2py] Hosting question

2019-07-31 Thread Paco Bernal
Hi Please can you test this url and tell me what you have as result? http://vps_ip/applications/app1/private/appconfig.ini Change vps_ip for the ip of your server and app1 for the name of your application (folder name) Thx -- Resources: - http://web2py.com - http://web2py.com/book (Documentati

Re: [web2py] Re: customizing menu items when MENU helper is used

2019-07-31 Thread Dave S
On Wednesday, July 31, 2019 at 5:13:31 AM UTC-7, Vlad wrote: > > It's not really about a menu as a whole (that would be easy). It's about > dynamically changing the background color for each menu item individually. > In this context I can't pass neither style nor class (in contrast with, for >

[web2py] Re: Pass variable from JavaScript function to controller: Using JSQueryBuilder

2019-07-31 Thread Aydin
Anthony, how to pass multiple variables, say result1 and result2? On Thursday, September 22, 2016 at 2:18:01 PM UTC-4, Anthony wrote: > > "result" is a Javascript variable, so it does not exist in the Python > context in which the URL() function is evaluated. Instead, you must add > that part of

[web2py] Re: Web2Py and ldap integration

2019-07-31 Thread 'tomt' via web2py-users
I have used ldap_auth successfully by implementing the following in models/db.py: from gluon.contrib.login_methods.ldap_auth import ldap_auth ... db = DAL('mysql://mydb:mydb@localhost/password') ... # --- end of web2py scaffolding ---

[web2py] Re: Hosting question

2019-07-31 Thread Rahul
Hi Jose, I added the line in routes.py - While it restricts allowing access to other applications like welcome it does not restrict redirection - so in my case it still redirected to welcome application mentioning something is wrong message. *Paco,* I checked for this "http://vp