[web2py] how in Parameter-based system set favicon URL

2015-09-24 Thread Dmitri Ermolaev
If I use Parameter-based system http://web2py.com/books/default/chapter/29/04/the-core?search=favicon how make route for http:/my_site.com/favicon.ico ??? that nnot worked routes_in = ( ('/favicon.ico', '/examples/static/favicon.ico'), ('/robots.txt', '/examples/static/robots.txt'), ) rout

[web2py] Support for python sentry server

2015-09-24 Thread Stefan van den Eertwegh
Hi all, I have a sentry server running for my logs and bugs from my Django projects which are running. But i have also a couple web2py projects running. Is it possible to send the traceback from web2py too a sentry server? I believe there is still no support for python web2py from sentry's side

[web2py] auth.wiki markmin extra not working?

2015-09-24 Thread A3
I tried to extend the auth.wiki using the extra option but I cannot get it to work. I set auth.wiki(resolve=False) in the models and used the following controller: def index(): checked = lambda text: '%s' % text + ' ✓' return auth.wiki(render='markmin',extra=dict(checked=checked)) in a

[web2py] Re: how in Parameter-based system set favicon URL

2015-09-24 Thread Niphlod
see root_static. BTW: the https://github.com/web2py/web2py/blob/master/examples/routes.parametric.example.py is quite full of useful comments. On Thursday, September 24, 2015 at 9:52:15 AM UTC+2, Dmitri Ermolaev wrote: > > If I use Parameter-based system > > http://web2py.com/books/default/ch

[web2py] Re: auth.wiki markmin extra not working?

2015-09-24 Thread Leonel Câmara
Do you have any call to auth.wiki before this one? Say in the models? -- 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 yo

[web2py] time zone in web2py revisited

2015-09-24 Thread icodk
I have the following 2.5 issues with user time zone 1. I installed the timezone plugin and followed the instructions up to that line: As soon as you call this page, session.plugin_timezone_tz is filled automatically with the detected timezone which comes just after the: from plugin_timez

[web2py] Re: time zone in web2py revisited

2015-09-24 Thread Niphlod
first time I hear someone having 2.5 issues, nice! let's see if we can clear them up 1. The plugin basically works invoking a nice js library that does its best to determine client-side what timezone the user is in. This info is POSTed to web2py, and stored in the user session. Since the "au

Re: [web2py] Re: time zone in web2py revisited

2015-09-24 Thread Itamar Cohen
Thank you Niphold Thanks for the explanation: My specific individual problem was that it took me a while to find out where to inject the tz script that I generate (in my case in the index() function). Since the index function is the first page in my application I just had to add {{=tz}} in the h

[web2py] no password asked when accessing appadmin directly [was:] recommented way to secure appadmin

2015-09-24 Thread 'Karl Thomas Schmidt' via web2py-users
I confirm, i can access appadmin, if i enter https://my.domain.somewhere/myapp/appadmin without beeing asked for admin password. This happens with all cookies deleted and explictly logout of former sessions too. Can someone confirm this? 2.12.3-stable+timestamp.2015.08.19.00.18.03 (Running on

[web2py] Re: no password asked when accessing appadmin directly [was:] recommented way to secure appadmin

2015-09-24 Thread Anthony
What happens when it gets to this part of the code in /controllers/appadmin.py: https://github.com/web2py/web2py/blob/R-2.12.3/applications/welcome/controllers/appadmin.py#L55 Does it call gluon.fileutils.check_credentials(request)? What is in the admin session at that time? Can you access the

[web2py] Re: auth.wiki markmin extra not working?

2015-09-24 Thread A3
I made a new application and only added the code to the index: and now it works. Then I tried to do the same in my earlier application. Replaced index: Replaced view/index Replaced model/db This had no effect. Op donderdag 24 september 2015 16:18:22 UTC+2 schreef Leonel Câmara: > > Do you have

[web2py] Re: auth.wiki markmin extra not working?

2015-09-24 Thread Leonel Câmara
I think this is a quite subtle bug. It's caused because auth only instantiates Wiki on the first call to auth.wiki. Later when you make a second call with extra set it doesn't do anything. To fix it open gluon/tools.py in your web2py installation and then where it says: else:

[web2py] Nginx / Web2py modules dont reload

2015-09-24 Thread Mark Billion
Running w2p on nginx/ubuntu 14.04. When I change a module's code, the changes dont show up when I load the app again (ie a class that returned 2 but now returns 1 still returns 2). Ive turned sendfile off in Nginx and have reloaded the thing over and over. Sometimes it works and sometimes I

[web2py] Re: Nginx / Web2py modules dont reload

2015-09-24 Thread 黄祥
perhaps it about web2py custom import e.g. models/db.py ## uncomment when running on development from gluon.custom_import import track_changes; track_changes(True) best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (S

[web2py] images in {{for index,image in enumerate(images):}} of my tiny website app.

2015-09-24 Thread Aydin S
I am trying to learn from "my tiny website" app and use the slide show that it is used there in the "images/images.html" view. I created a new view like default/mynewpage.html and copied "images/images.html" view into it; when I ran it there was an error " "images" is not defined. I did some de

[web2py] Re: Nginx / Web2py modules dont reload

2015-09-24 Thread Mark Billion
Sadly I've tried that too -- 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 "web2

[web2py] Re: Nginx / Web2py modules dont reload

2015-09-24 Thread Leonel Câmara
Yeah I pretty much just restart uwsgi-emperor or touch the affected application config file in /etc/uwsgi/vassals -- 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 Issu

[web2py] Re: images in {{for index,image in enumerate(images):}} of my tiny website app.

2015-09-24 Thread Anthony
You have to define the "images" object somewhere (presumably it is a Rows object, which is the result of querying the database). Typically it would be defined in the controller action and returned in the action's dictionary (though it could also be defined in a model file if it is needed by mul

[web2py] Re: Questions about authentication and authorization

2015-09-24 Thread Massimo Di Pierro
each app (provider and consumer) has its own session cookies. An authentication gets passed between the two at login, similarly to oauth. On Sunday, 20 September 2015 18:54:44 UTC-5, Luis Valladares wrote: > > After some discussion with my team we come with this architecture: > > We will have a s

[web2py] Re: Simple Wiki Markmin Google docs viewer needs HTTPS

2015-09-24 Thread Massimo Di Pierro
Is there any @auth.require* protection for the url that serves the xls document? The viewer is a google app and it does not share your credentials. It wants the doc to be public. On Wednesday, 23 September 2015 08:50:35 UTC-5, A3 wrote: > > Hi Massimo: > I tried it: browser is no longer complai

[web2py] Re: Grails for web2py - anyone interested ?

2015-09-24 Thread Massimo Di Pierro
I agree with Joe. Now we are all curious. On Wednesday, 23 September 2015 18:55:18 UTC-5, Joe Barnhart wrote: > > Not to worry Grahme -- I find most web2py'ers are an adventurous lot. > Massimo (our BDFL) is probably more adventurous than anyone! You won't > get in trouble for "impure thinkin

[web2py] Re: Nginx / Web2py modules dont reload

2015-09-24 Thread Massimo Di Pierro
Track changes is really meant for testing and not for production and I cannot exclude something strange can happen in a highly concurrent environment. If the module is in the app modules/ folder, all workers should update it but something else may be going on. As Leonel says restarting uwsgi-em

[web2py] Installing app on Pythonanywhere

2015-09-24 Thread Joe
When I install the packaged app using the admin interface on Pythonanywhere I have to name the app init otherwise I am not allowed to install the app. I wonder why this is happening. Is there any way to avoid this? I end up with a URL like this:http://www.mydomain.com/init/default/index Actually