search external_resources in application home
authorSylvain Thenault <sylvain.thenault@logilab.fr>
Mon, 22 Dec 2008 14:30:44 +0100
changeset 252 8cd0c2111783
parent 251 de7e74ff03f8
child 253 57e88c0ba286
search external_resources in application home
web/webconfig.py
--- a/web/webconfig.py	Mon Dec 22 12:53:37 2008 +0100
+++ b/web/webconfig.py	Mon Dec 22 14:30:44 2008 +0100
@@ -314,6 +314,10 @@
             if exists(resourcesfile):
                 self.debug('loading %s', resourcesfile)
                 self.ext_resources.update(read_config(resourcesfile))
+        resourcesfile = join(self.apphome, 'external_resources')
+        if exists(resourcesfile):
+            self.debug('loading %s', resourcesfile)
+            self.ext_resources.update(read_config(resourcesfile))
         for resource in ('STYLESHEETS', 'STYLESHEETS_PRINT',
                          'IE_STYLESHEETS', 'JAVASCRIPTS'):
             val = self.ext_resources[resource]