web/webconfig.py
branchtls-sprint
changeset 890 3530baff9120
parent 823 cb8ccbef8fa5
child 893 1f9308b253ce
--- a/web/webconfig.py	Fri Feb 20 10:38:41 2009 +0100
+++ b/web/webconfig.py	Fri Feb 20 15:06:59 2009 +0100
@@ -199,6 +199,15 @@
             return 'http://intranet.logilab.fr/jpl/view?__linkto=concerns:%s:subject&etype=Ticket&type=bug&vid=creation' % cubeeid
         return None
 
+    def fckeditor_installed(self):
+        return exists(self.ext_resources['FCKEDITOR_PATH'])
+    
+    def eproperty_definitions(self):
+        for key, pdef in super(WebConfiguration, self).eproperty_definitions(self):
+            if key == 'ui.fckeditor' and not self.fckeditor_installed():
+                continue
+            yield key, pdef
+                
     # method used to connect to the repository: 'inmemory' / 'pyro'
     # Pyro repository by default
     repo_method = 'pyro'