equal
deleted
inserted
replaced
79 """the WebConfiguration is a singleton object handling instance's |
79 """the WebConfiguration is a singleton object handling instance's |
80 configuration and preferences |
80 configuration and preferences |
81 """ |
81 """ |
82 cubicweb_appobject_path = CubicWebConfiguration.cubicweb_appobject_path | set([join('web', 'views')]) |
82 cubicweb_appobject_path = CubicWebConfiguration.cubicweb_appobject_path | set([join('web', 'views')]) |
83 cube_appobject_path = CubicWebConfiguration.cube_appobject_path | set(['views']) |
83 cube_appobject_path = CubicWebConfiguration.cube_appobject_path | set(['views']) |
84 uiprops = {'FCKEDITOR_PATH': ''} |
|
85 |
84 |
86 options = merge_options(CubicWebConfiguration.options + ( |
85 options = merge_options(CubicWebConfiguration.options + ( |
87 ('repository-uri', |
86 ('repository-uri', |
88 {'type' : 'string', |
87 {'type' : 'string', |
89 'default': 'inmemory://', |
88 'default': 'inmemory://', |
242 'help': 'anonymize the connection before executing any jsonp query.', |
241 'help': 'anonymize the connection before executing any jsonp query.', |
243 'group': 'web', 'level': 1 |
242 'group': 'web', 'level': 1 |
244 }), |
243 }), |
245 )) |
244 )) |
246 |
245 |
|
246 def __init__(self, *args, **kwargs): |
|
247 super(WebConfiguration, self).__init__(*args, **kwargs) |
|
248 self.uiprops = None |
|
249 self.https_uiprops = None |
|
250 self.datadir_url = None |
|
251 self.https_datadir_url = None |
|
252 |
247 def fckeditor_installed(self): |
253 def fckeditor_installed(self): |
248 return exists(self.uiprops['FCKEDITOR_PATH']) |
254 if self.uiprops is None: |
|
255 return False |
|
256 return exists(self.uiprops.get('FCKEDITOR_PATH', '')) |
249 |
257 |
250 def cwproperty_definitions(self): |
258 def cwproperty_definitions(self): |
251 for key, pdef in super(WebConfiguration, self).cwproperty_definitions(): |
259 for key, pdef in super(WebConfiguration, self).cwproperty_definitions(): |
252 if key == 'ui.fckeditor' and not self.fckeditor_installed(): |
260 if key == 'ui.fckeditor' and not self.fckeditor_installed(): |
253 continue |
261 continue |