web/webconfig.py
changeset 8889 be91151107f6
parent 8850 4032499c701e
parent 8870 c9d18b8dbfea
child 8941 7b26fe71404f
--- a/web/webconfig.py	Wed Apr 10 16:46:18 2013 +0200
+++ b/web/webconfig.py	Mon Apr 15 13:18:01 2013 +0200
@@ -81,7 +81,6 @@
     """
     cubicweb_appobject_path = CubicWebConfiguration.cubicweb_appobject_path | set([join('web', 'views')])
     cube_appobject_path = CubicWebConfiguration.cube_appobject_path | set(['views'])
-    uiprops = {'FCKEDITOR_PATH': ''}
 
     options = merge_options(CubicWebConfiguration.options + (
         ('repository-uri',
@@ -244,8 +243,17 @@
           }),
         ))
 
+    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'])
+        if self.uiprops is None:
+            return False
+        return exists(self.uiprops.get('FCKEDITOR_PATH', ''))
 
     def cwproperty_definitions(self):
         for key, pdef in super(WebConfiguration, self).cwproperty_definitions():