[webconfig] debug mode should not be special wrt data_url handling (closes #2405487) stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Thu, 19 Jul 2012 10:27:04 +0200
branchstable
changeset 8475 65fecbeb9c3a
parent 8474 1197bd6f5ceb
child 8476 864a92b10cb8
[webconfig] debug mode should not be special wrt data_url handling (closes #2405487)
web/webconfig.py
--- a/web/webconfig.py	Thu Jul 19 10:25:22 2012 +0200
+++ b/web/webconfig.py	Thu Jul 19 10:27:04 2012 +0200
@@ -331,10 +331,9 @@
         self.datadir_url = baseurl + data_relpath
 
     def data_relpath(self):
-        if (self.debugmode or self.mode == 'test'):
+        if self.mode == 'test':
             return 'data/'
-        else:
-            return 'data/%s/' % self.instance_md5_version()
+        return 'data/%s/' % self.instance_md5_version()
 
     def _build_ui_properties(self):
         # self.datadir_url[:-1] to remove trailing /