[web2py] Re: admin interface

2017-01-02 Thread 'Annet' via web2py-users
Hi, Thanks for your reply. I went for the short circuit option: if request.application == 'admin': redirect('https://ldc.leonexus.nl') What would the routes.py solution look like? I have a parametric routes.py which amongst others contains the following lines of code: routers = dict( B

[web2py] Re: admin interface

2016-12-05 Thread Niphlod
this is far clearer. If you want a single web2py instance to behave like that, you NEED to use routes.py, enabling/disabling routes to the admin app inspecting the hostname it's called in. OR, you can just short-circuit admin adding a model file (name it alphabetically so it gets executed bef

[web2py] Re: admin interface

2016-12-04 Thread 'Annet' via web2py-users
Hi Anthony, Thanks for your reply. I apologize for not being clear enough, I have one installation of web2py and 4 applications each being referenced by their own domain. dbadmin by admin.mydomain.com init by www.mydomain,com etc. I only want acces the web2py interface via admin.mydomain.com

[web2py] Re: admin interface

2016-12-02 Thread Anthony
On Friday, December 2, 2016 at 9:29:00 AM UTC-5, Annet wrote: > > Hi, > > Thanks for your reply. You mean an empty .py file named DISABLED > That will completely disable the app, not prevent it from showing up in admin. > > What does ATM stand for? > "at the moment," probably. Anthony -- R

[web2py] Re: admin interface

2016-12-02 Thread Anthony
On Friday, December 2, 2016 at 5:38:56 AM UTC-5, Annet wrote: > > I have an application with limited functionality in which I want to access > web2py's admin interface. > > I have 3 application in the same web2py installation in which I want to > disable the admin interface. > So, when you log int

[web2py] Re: admin interface

2016-12-02 Thread 'Annet' via web2py-users
Hi, Thanks for your reply. You mean an empty .py file named DISABLED What does ATM stand for? Kind regards, Annet -- 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

[web2py] Re: admin interface

2016-12-02 Thread Niphlod
you open /admin ?! why is that an issue ? BTW: for disabling ATM you can just put a "DISABLED" file in the root folder of the app. On Friday, December 2, 2016 at 11:38:56 AM UTC+1, Annet wrote: > > I have an application with limited functionality in which I want to access > web2py's admin inte

[web2py] Re: admin interface wrong on 2.8.2

2013-12-03 Thread shapovalovdenis
the thing is that tickets are generated only in google chrome, in FF admin iface works just fine. 'dict' object has no attribute 'is_mobile' On Tuesday, December 3, 2013 10:05:36 PM UTC+2, shapova...@gmail.com wrote: > > hmmm, > > Had the same problem with admin (looked like no js and css),

[web2py] Re: admin interface wrong on 2.8.2

2013-12-03 Thread shapovalovdenis
hmmm, Had the same problem with admin (looked like no js and css), I've replaced ^/([^/]+)/static/?(.*) with AliasMatch ^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*) \ in two places in my vhosts configuration section, now all I get is tickets, that I cannot see. Any ideas? On Tuesday, De

[web2py] Re: admin interface wrong on 2.8.2

2013-12-02 Thread Dave S
On Monday, December 2, 2013 7:46:46 PM UTC-8, Dave S wrote: > > On Monday, December 2, 2013 7:10:10 PM UTC-8, lucas wrote: >> >> hey everyone, >> >> got web2py 2.8.2 working on apache and centos. fixed under >> >> https://groups.google.com/forum/#!topic/web2py/DexgEESPk38 >> >> however, i mentio

[web2py] Re: admin interface wrong on 2.8.2

2013-12-02 Thread Dave S
On Monday, December 2, 2013 7:10:10 PM UTC-8, lucas wrote: > > hey everyone, > > got web2py 2.8.2 working on apache and centos. fixed under > > https://groups.google.com/forum/#!topic/web2py/DexgEESPk38 > > however, i mentioned that admin interface is all messed up. my admin > interface is not r

[web2py] Re: admin interface wrong on 2.8.2

2013-12-02 Thread Massimo Di Pierro
In your apache config files you need to replace ^/([^/]+)/static/?(.*) with ^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*) in two places. On Monday, 2 December 2013 21:10:10 UTC-6, lucas wrote: > > hey everyone, > > got web2py 2.8.2 working on apache and centos. fixed under > > https://groups.

[web2py] Re: admin interface + GAE

2012-11-24 Thread dlypka
Yes, not a bug but these are issues which come up when messing with the admin interface on GAE. NOTE that the issues occur when running locally using the GAE SDK as well. So I assume the correct approach is to run it once as a normal web2py app i.e. python web2py.py to get those special files to

[web2py] Re: admin interface + GAE

2012-11-21 Thread Massimo Di Pierro
You are right. This is a different problem. Please open a ticket about it, if not done already and I will check later today or tomorrow. On Wednesday, 21 November 2012 11:08:55 UTC-6, Sebastian Cambeo wrote: > > I don't know if we understand us correctly. I don't use get_or_create_key > anywhere

[web2py] Re: admin interface + GAE

2012-11-21 Thread Sebastian Cambeo
I don't know if we understand us correctly. I don't use get_or_create_key anywhere and I am not referring to dlypka posts (I think our problems are not related). However my problem remains existing: If you deploy web2py trunk/stable with no other changes than altering the app.yaml in order to u

[web2py] Re: admin interface + GAE

2012-11-21 Thread Massimo Di Pierro
This is not a bug! 1) First of all, for new apps, do not use get_or_create_key any more. The new web2py had better security using salted password. You do not need a key. 2) If you must use a key (because you have a legacy app or because you want to use hmac) the key must be saved on a file. You

[web2py] Re: admin interface + GAE

2012-11-20 Thread Sebastian Cambeo
http://code.google.com/p/web2py/issues/detail?id=1177 --

[web2py] Re: admin interface + GAE

2012-11-19 Thread dlypka
I had to work around this problem in tools.py in my web2py 1.9x code. Maybe this issue is still in 2.x @staticmethod def get_or_create_key(filename=None): request = current.request if not filename: filename = os.path.join(request.folder,'private','auth.key') if os.path.exists(filename): key

[web2py] Re: admin interface + GAE

2012-11-19 Thread Massimo Di Pierro
Please open a ticken about this. I will be able to look at it later tomorrow. On Monday, 19 November 2012 10:57:27 UTC-6, Sebastian Cambeo wrote: > > might it be, that "users.create_login_url(request.env.path_info)" in > "check_credentials" needs some kind of file access? > > Anyhow this request

[web2py] Re: admin interface + GAE

2012-11-19 Thread Sebastian Cambeo
might it be, that "users.create_login_url(request.env.path_info)" in "check_credentials" needs some kind of file access? Anyhow this request appears to trigger the error --

[web2py] Re: admin interface + GAE

2012-11-19 Thread Massimo Di Pierro
Strange. this is a gae error. On Monday, 19 November 2012 03:16:46 UTC-6, Sebastian Cambeo wrote: > > What comes as a surprise to me is that the admin interface is working in > the GAE SDK emulation... > > The error log: > > In FILE: > /base/data/home/apps/s~cambeoserver/1.363277968286640588/app

[web2py] Re: admin interface + GAE

2012-11-19 Thread Sebastian Cambeo
What comes as a surprise to me is that the admin interface is working in the GAE SDK emulation... The error log: In FILE: /base/data/home/apps/s~cambeoserver/1.363277968286640588/applications/admin/models/access.py Traceback (most recent call last): File "/base/data/home/apps/s~cambeoserver

[web2py] Re: admin interface + GAE

2012-11-18 Thread Massimo Di Pierro
Can you show use a traceback from the GAE logs. Admin is readonly on GAE. On Sunday, 18 November 2012 12:53:49 UTC-6, Sebastian Cambeo wrote: > > Is it possible to use the admin interface on GAE? I get internal errors > although I changed the app.yaml accordingly > > Thank You! > > Sebastian > -

[web2py] Re: admin interface crashes

2012-10-28 Thread Massimo Di Pierro
I think this is because the ticket was created with an older web2py version. We should catch this error but if you delete the old tickets it will work fine. On Sunday, 28 October 2012 09:00:18 UTC-5, mweissen wrote: > > I have tried to have a look at the error list from the admin interface -> >

[web2py] Re: Admin interface slow when static dir has a lot of files

2012-05-06 Thread pbreit
I'd suggest putting the images outside the web2py directory or not using the web interface.

[web2py] Re: Admin interface slow when static dir has a lot of files

2012-05-06 Thread Massimo Di Pierro
You should not let rocket serve static files. I would use a production quality server luke apache or ngnix. Anyway, it is not a good idea to have too many files in the same folder. Just accessing the file system becomes a bottle neck. One way to increase efficiency is to move the static files to

[web2py] Re: Admin interface slow when static dir has a lot of files

2012-05-06 Thread Larry Weinberg
Is this being addressed? I am finding the same problem. Other than that, and a couple of other suggestions for having more links to speed up the admin interface workflow I am loving web2py!

Re: [web2py] Re: Admin interface

2012-03-06 Thread Bruno Rocha
I think it should be there by default! It is very better to have subfolders. On Tue, Mar 6, 2012 at 8:26 PM, Bruce Wade wrote: > If anyone is interested (note there may be a better way) I customized my > ad to have the views collapse/expand like the static ones based on folders. > > Replace the

[web2py] Re: Admin interface

2012-03-06 Thread Bruce Wade
If anyone is interested (note there may be a better way) I customized my ad to have the views collapse/expand like the static ones based on folders. Replace the code in admin->views->default->design.html between: and {{=T("Views")}} {{=helpicon()}} {{=T("The presentations layer, views