web/webconfig.py
branchstable
changeset 8870 c9d18b8dbfea
parent 8868 12f29b0ed0bb
child 8889 be91151107f6
--- a/web/webconfig.py	Mon Apr 08 16:19:29 2013 +0200
+++ b/web/webconfig.py	Mon Apr 08 16:43:26 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,7 +243,9 @@
         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():