From 371a4780e821c8fcdb9e2e6426672d3bffbece81 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Tue, 27 Aug 2013 06:34:36 -0500 Subject: [PATCH] fixed get_app problem on windows --- VERSION | 2 +- applications/admin/controllers/default.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index fe6677da..2e7f1fff 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.6.0-development+timestamp.2013.08.27.06.30.01 +Version 2.6.0-development+timestamp.2013.08.27.06.33.47 diff --git a/applications/admin/controllers/default.py b/applications/admin/controllers/default.py index 360ce7bd..1cdc3dd4 100644 --- a/applications/admin/controllers/default.py +++ b/applications/admin/controllers/default.py @@ -85,7 +85,8 @@ def safe_write(a, value, b='w'): def get_app(name=None): - if (app and os.path.exists(apath(name, r=request)) and + app = name or request.args(0) + if (app and os.path.exists(apath(app, r=request)) and (not MULTI_USER_MODE or is_manager() or db(db.app.name == app)(db.app.owner == auth.user.id).count())): return app