[web2py] Re: How to limit access to administrative interface?

2017-01-08 Thread Sepehr Mohamadi
I got it myself! I should disable admin interface at all on a production server! And make another local web2py just in case: http://web2py.com/books/default/chapter/29/13/deployment-recipes?search=administrative+interface#Securing-sessions-and-admin On Sunday, January 8, 2017 at 9:37:03 AM UTC+

Re: [web2py] Self-hosted web analytics solutions for Web2py

2017-01-08 Thread Joe
Thanks for the link Richard, I just copied everything and tried it but I am getting this error: OperationalError: no such table: usage_statistics I think I am missing a step. Can you please advise. Thanks. Cheers, Joe On Friday, January 6, 2017 at 11:12:36 PM UTC+8, Richard wrote: > > Y

[web2py] Re: Rest Json

2017-01-08 Thread PK
On Saturday, January 7, 2017 at 9:45:15 PM UTC, 黄祥 wrote: > > pls try : > ### Change user with email if username is disabled > ### Check patterns in > http://127.0.0.1:8000/application/controller/api/patterns.json > > ## curl > # GET > curl -X GET --user user:password -i > http://127.0.0.1:8000

[web2py] response.flash or session.flash with dict instead of string???

2017-01-08 Thread António Ramos
hello i´m using toastr as a replacement form the web2py flash html. For toastr i need the message and the type of message ,info error success. My question is if is it safe and possible to set response.flash=dict(type="error",mesg="test message") regards Antonio -- Resources: - http://web2py.

[web2py] Help needed simplifying creation of response.menu 4-tuple

2017-01-08 Thread Terrence Brannon
I attempted to simplify creation of the response.menu list of tuples by the following function: def menu_item(menu_item_text, url, sub_menu=None, ignore=False): # First element of tuple is the text of the meny item. retval = list(menu_item_text) # Second element of the tuple indicat

[web2py] response.flash or session.flash with dict instead of string???

2017-01-08 Thread Anthony
Try it and see. ;-) -- 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 you are subscribed to the Google Groups "web2py-use

[web2py] Installed applications

2017-01-08 Thread new2py
Hi, This may be a dumb question, but I have saved/installed apps on my web2py account, but when I login from another computer, my apps are no longer there ( only when I login from my home computer (which they were created on). Is there any way to pull them up outside of my home computer? If I

[web2py] How to share a variable between the web users in Web2Py without a database

2017-01-08 Thread Alwyn Pan
I have a Web2Py webapp which is a web interface for a blastn script. Now I need to limit the process running simultaneously, my thought is, When the webapp starts, the way I did is, in default.py: available_worker = multiprocessing.cpu_count() - 1 def get_workers(): global avai

Re: [web2py] Self-hosted web analytics solutions for Web2py

2017-01-08 Thread Joe
Thanks for the link Richard, This is great! I deployed it and it works perfectly. BTW: what is the best way to include a unique session id for each visit in the 'usage_statistics' table? On Friday, January 6, 2017 at 11:12:36 PM UTC+8, Richard wrote: > > You can look on the side of piwik : https

[web2py] Connecting new table to mysql db on Pythonanywhere

2017-01-08 Thread Joe
I have a table already defined in my app and it's connected to mysql on Pythonanywhere. I wanted to define an other table in the same app but I am unable to connect this new table to db. In my db.py file I have this: *if not request.env.web2py_runtime_gae:* *## if NOT running on Google App

[web2py] Re: Help needed simplifying creation of response.menu 4-tuple

2017-01-08 Thread Dave S
On Sunday, January 8, 2017 at 12:04:07 PM UTC-8, Terrence Brannon wrote: > > I attempted to simplify creation of the response.menu list of tuples by > the following function: > > > def menu_item(menu_item_text, url, sub_menu=None, ignore=False): > # First element of tuple is the text of the

[web2py] Re: Installed applications

2017-01-08 Thread Dave S
On Sunday, January 8, 2017 at 4:50:45 PM UTC-8, new2py wrote: > > Hi, > > This may be a dumb question, but I have saved/installed apps on my web2py > account, but when I login from another computer, my apps are no longer > there ( only when I login from my home computer (which they were create