[webconfig] explicit some webconfig attribute stable
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Mon, 08 Apr 2013 16:13:03 +0200
branchstable
changeset 8868 12f29b0ed0bb
parent 8866 64f24ecad177
child 8869 a46197b1696f
[webconfig] explicit some webconfig attribute Explicit declaration of attribute are much clearer. Just do it.
web/webconfig.py
--- a/web/webconfig.py	Mon Apr 08 14:18:32 2013 +0200
+++ b/web/webconfig.py	Mon Apr 08 16:13:03 2013 +0200
@@ -236,6 +236,13 @@
           }),
         ))
 
+    def __init__(self, *args, **kwargs):
+        super(WebConfiguration, self).__init__(*args, **kwargs)
+        self.uiprops = None
+        self.https_uiprops = None
+        self.datadir_url = None
+        self.https_datadir_url = None
+
     def fckeditor_installed(self):
         return exists(self.uiprops['FCKEDITOR_PATH'])