From 9e7ad4c38362d556759cb279266cc324dd0ea163 Mon Sep 17 00:00:00 2001
From: Renaud Le Gac <legac@cppm.in2p3.fr>
Date: Tue, 26 Mar 2013 17:34:51 +0100
Subject: [PATCH] fixed a bug building the web2py version of the plugin.

---
 buildVersion.py        | 2 +-
 controllers/default.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/buildVersion.py b/buildVersion.py
index 256f5c3e..89baace0 100755
--- a/buildVersion.py
+++ b/buildVersion.py
@@ -42,7 +42,7 @@ import urllib
 
 
 # constants
-APP = 'mygit_dbui_04x'
+APP = os.path.basename(os.getcwd())
 CHANGELOG = 'static/plugin_dbui/CHANGELOG'
 DBUI_W2P = 'web2py.plugin.dbui.%s.w2p'
 JSBASE = 'static/plugin_dbui/src/base.js'
diff --git a/controllers/default.py b/controllers/default.py
index e5a335cb..587056d0 100644
--- a/controllers/default.py
+++ b/controllers/default.py
@@ -19,7 +19,7 @@ def pack_plugin():
     
     """
     pname = 'dbui'
-    fname = 'web2py.plugin.%s.w2p' %pname
+    fname = 'web2py.plugin.%s.w2p' % pname
     filename = plugin_pack(request.application, pname, request)
 
     if filename:
-- 
GitLab