[web2py] appconfig local vs api provide by another web2py app

2018-04-17 Thread 黄祥
just curious, is there any performance difference while storing appconfig in local (private/appconfig.ini) or by using json api that provide by another web2py app? *objective* to create central configuration webapp between web2py app *e.g. for json api that provide by another web2py app*

Re: [web2py] Buttons labels change to "Working..." when pressed

2018-04-17 Thread Junior Phanter
check your we2py_ajax.html in your view folder, try change the line "var w2p_ajax_disable_with_message = "{{=T('Working...')}}";" 2018-04-17 23:12 GMT-03:00 Michael Cowen : > > I am not sure if this is related to web2py or something else so I thought > I would ask ... >

[web2py] Buttons labels change to "Working..." when pressed

2018-04-17 Thread Michael Cowen
I am not sure if this is related to web2py or something else so I thought I would ask ... I have three buttons that I make a toggle switch through Java script. The Java script changes their class name which then lets different CSS style them. I have noticed that when I click a button, EVERY

[web2py] AppConfig in JSON returns unicode

2018-04-17 Thread Joe Barnhart
This is sort of a bug, sort of a feature. I just converted to the JSON version of AppConfig (in the gluon/contrib) and discovered the strings it produces are all unicode -- even in Python 2.x environments. I'm not sure of ALL of the ramifications, but I discovered it causes crypt fields to

Re: [web2py] web2py, nginx and big files

2018-04-17 Thread Richard Vézina
How big? https://www.bookstackapp.com/docs/admin/upload-limits/ https://www.nginx.com/resources/wiki/modules/upload/#upload-max-file-size Quote from the above link: For “hard” limit client_max_body_size directive must be used. The value of zero for this directive specifies that no restrictions

[web2py] web2py, nginx and big files

2018-04-17 Thread Carlos Cesar Caballero Díaz
Hi, I have a web2py + nginx setup (https://github.com/arisobel/web2py_scripts/blob/master/setup-web2py-nginx-p3-uwsgi-ubuntu.sh) and I need to upload big files to my application, the app is working ok with the built in server, but with nginx the form submission fails with no response when

Re: [web2py] Re: I cant access db data

2018-04-17 Thread Maurice Waka
Thanks. It worked. On Tue, 17 Apr 2018, 15:37 Anthony wrote: > On Tuesday, April 17, 2018 at 1:33:29 AM UTC-4, Maurice Waka wrote: >> >> Sorry, am still experiencing the same issue. >> This module is one of the many that I import to the controller . >> i.e. >> >>

Re: [web2py] Re: I cant access db data

2018-04-17 Thread Anthony
On Tuesday, April 17, 2018 at 1:33:29 AM UTC-4, Maurice Waka wrote: > > Sorry, am still experiencing the same issue. > This module is one of the many that I import to the controller . > i.e. > > controller: > from gluon import current > db = current.db > There is nothing in web2py that

[web2py] Re: How to redirect http to https?

2018-04-17 Thread Dave S
On Monday, April 16, 2018 at 7:51:21 AM UTC-7, Anthony wrote: > > Another option is to configure your web server to do the redirect. > > And that's easy enough in NGINX that even I have been able to set it up. I did use the request.requires_https() method when I was still using Rocket, but

[web2py] Re: Datetime onSelect event

2018-04-17 Thread Dave S
On Monday, April 16, 2018 at 1:52:54 AM UTC-7, tomasz bandura wrote: > > Hello, > > I need to do some action after selecting value in datetime field. > After my investigation it looks the one way is to create my own datetime > component with implemented 'onSelect' event. > > Another option is

[web2py] Re: Dealing with db objects on duplicated app

2018-04-17 Thread Sergio Romero
I don't know why, but I delete the sqli databases of each applications and instantiate the DAL with migrate=false. It shows an error on db.auth_users because it doesn't exist. Then I change each dal instantiation to migrate= true and none errors wasn't took place and users are not shared

[web2py] Re: uploading a file with a form ( without SQLFORM)

2018-04-17 Thread Dave S
On Friday, April 13, 2018 at 1:15:36 PM UTC-7, Multiplery wrote: > > Hey folks, > > I'm attempting to upload a file directly without the use of a SQLForm but > rather the ordinary FORM. > From previous threads regarding the topic i figured my controller should > look something like this: > >

[web2py] Re: Dealing with db objects on duplicated app

2018-04-17 Thread Dave S
On Monday, April 16, 2018 at 10:48:34 PM UTC-7, Sergio Romero wrote: > > I used the starter app example of mjbeller > > I have the same app code on each app to instantiate the DAL but with > different appconfig.ini > > appconfig.ini of app1 > > uri= sqlite://storage.sqlite > migrate