[web2py] Re: Why web2py server hangs/freeze?

2017-09-10 Thread Narendra Kumar
Hi Massimo, Good Morning. And sorry for my poor English. Q1) when you saying it hangs are your trying from a new incognito window or from the same browser? It may be a session lock not a freeze. Ans) Whenever sever freezes/hanged. We try to access our pages from different browser bit still get

[web2py] Re: Update value on view

2017-09-10 Thread Wabbajack
Hi Anthony, I have successfully get the values from another file... thanks... But for now i have another problem displaying the values into a graph... In views/default/index.html {{extend 'layout.html'}} {{=LOAD('default', 'graph', ajax=True, timeout=500, times='infinity')}}

[web2py] Re: How to use Let's Encrypt with Web2Py on Apache

2017-09-10 Thread Yi Liu
Dug up this old thread. In case anybody wondering the same question about certbot/let's encrypt and web2py. 1. use `--standalone` as David advised. But you have to stop the webserver everytime you renew. 2. instead, you can use the standard `--webroot` method. Here, you need to edit your

[web2py] Re: Future releases and support

2017-09-10 Thread Anthony
Not sure what you mean. We just had a major release in July (v2.15), with a few quick minor follow-ups (the most recent only 9 days ago). And 2.16 beta is already available on Github. If you look at the web2py and pyDAL repositories, you will see there has been a good amount of development

Re: [web2py] How can you remove the text "Export" from a grid??

2017-09-10 Thread Anthony
On Sunday, September 10, 2017 at 3:34:27 AM UTC-4, Andrea Fae' wrote: > > You are right, like the same! But, where is it written? > http://web2py.com/books/default/chapter/29/07/forms-and-validators#SQLFORM-grid-signature -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: Why web2py server hangs/freeze?

2017-09-10 Thread 黄祥
is put session.forget() at the beginning of the function can make process goes faster? and move the computation to a background task is same like put it on web2py scheduler? thanks and best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] Re: dumb question about sessions server used to store tables in order to avoid hits to db

2017-09-10 Thread Massimo Di Pierro
you can delete session['anyvar'] or session.anybar = None it will be saved this purging anyvar. On Thursday, 7 September 2017 16:29:03 UTC-5, CDA wrote: > > Can we purge only a subset of sessions? > > On Sep 7, 2017 5:17 PM, "Anthony" wrote: > >> On Thursday,

[web2py] Re: how to import a package that has deeply nested imports

2017-09-10 Thread Massimo Di Pierro
Thanks for letting us know. That usually works. When it does not the you can use the web2py/site-packages folder. On Tuesday, 5 September 2017 07:26:35 UTC-5, Carl Hunter Roach wrote: > > placing the tlslite directly in applications/appname/modules enables > import statements to resolve

[web2py] Re: Why web2py server hangs/freeze?

2017-09-10 Thread Massimo Di Pierro
Let's rule out the usual culprits: - when you saying it hangs are your trying from a new incognito window or from the same browser? It may be a session lock not a freeze. - are using apache? Don't it has memory issues. Use Nginx - do you have processes that may take a lot of time? consider

[web2py] Re: how to pass table name to controller?

2017-09-10 Thread Massimo Di Pierro
I think you want: tablename, fieldname = specificTableToSearchMembersFromID.split('.') db.Role.object_super_object_FK.requires = IS_IN_DB(db (db[tablename][fieldname]), 'cost_center.super_object_fk', '%(cost_center_title)s', zero = T('choose one')) On Friday, 1 September 2017 16:36:10 UTC-5,

Re: [web2py] Re: Support for BIT(1) as boolean?

2017-09-10 Thread Massimo Di Pierro
what adapter are you using. What is your URI string (without passwords please)? On Monday, 4 September 2017 09:53:46 UTC-5, Yan Wong wrote: > > With this code, I now find that with the latest version of web2py > (2.15.4), I get > > File "applications/XXX/models/db.py", line 46, in >

[web2py] Re: back button

2017-09-10 Thread Massimo Di Pierro
You cannot add buttons to a readonly crud form because it has no button row. You can do: form.components.append(A('Back',_onclick="window.history.go('-1')")) On Sunday, 3 September 2017 13:49:31 UTC-5, Andrea Fae' wrote: > > I use in a method this > form=crud.read(db.evento,evento) >

[web2py] Future releases and support

2017-09-10 Thread Arnab Dutta
Hi, Are there any plans of future releases of web2py as there have been no significant activities this year? I quite enjoy working on the framework so would like to know if it is worth investing time on this to build a tool as opposed to Flask/Django? Thanks, Arnab -- Resources: -

[web2py] Re: callback with BUTTON

2017-09-10 Thread Martin Weissenboeck
I have found a solution BUTTON('Testext', _onclick="ajax('%s',[],'')" % URL("testfunction") 2017-09-10 17:47 GMT+02:00 Martin Weissenboeck : > I have tried the callback parameter of A: > > A('Testext', callback('testfunction')) > > > Works fine. Now I want the same

[web2py] Re: how to set migrate = False in db.auth_user extra fields?

2017-09-10 Thread Leonel Câmara
Well you can define the tables manually instead of calling auth.define_tables Also note that there's no need to auth.define_tables(migrate=False, fake_migrate=False) if you have set migrate=False and fake_migrate=False at the DAL level because auth will use whatever settings you have used for

[web2py] Re: how to set migrate = False in db.auth_user extra fields?

2017-09-10 Thread Alex Glaros
any way to specifically target auth_user (or any of the auth tables)? -- 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 received this message because

[web2py] callback with BUTTON

2017-09-10 Thread Martin Weissenboeck
I have tried the callback parameter of A: A('Testext', callback('testfunction')) Works fine. Now I want the same function for a BUTTON, something like BUTTON('Testtext', callback('testfunction') Ok, BUTTON does not accept a callback parameter, therefore it should look like

[web2py] Re: how to set migrate = False in db.auth_user extra fields?

2017-09-10 Thread Leonel Câmara
You can do it in auth.define_tables. auth.define_tables(migrate=False, fake_migrate=False) -- 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 received

Re: [web2py] How can you remove the text "Export" from a grid??

2017-09-10 Thread Andrea Fae'
You are right, like the same! But, where is it written? Thanks a lot Il giorno sabato 9 settembre 2017 21:53:47 UTC+2, Anthony ha scritto: > > I don't see csv=False in your grid call: SQLFORM.grid(..., csv=False). You > don't have to bother with exportclasses if you set csv=False. > > Anthony >