web/webconfig.py
changeset 252 8cd0c2111783
parent 151 343e7a18675d
child 447 0e52d72104a6
equal deleted inserted replaced
251:de7e74ff03f8 252:8cd0c2111783
   312         for path in reversed([self.apphome] + self.cubes_path()):
   312         for path in reversed([self.apphome] + self.cubes_path()):
   313             resourcesfile = join(path, 'data', 'external_resources')
   313             resourcesfile = join(path, 'data', 'external_resources')
   314             if exists(resourcesfile):
   314             if exists(resourcesfile):
   315                 self.debug('loading %s', resourcesfile)
   315                 self.debug('loading %s', resourcesfile)
   316                 self.ext_resources.update(read_config(resourcesfile))
   316                 self.ext_resources.update(read_config(resourcesfile))
       
   317         resourcesfile = join(self.apphome, 'external_resources')
       
   318         if exists(resourcesfile):
       
   319             self.debug('loading %s', resourcesfile)
       
   320             self.ext_resources.update(read_config(resourcesfile))
   317         for resource in ('STYLESHEETS', 'STYLESHEETS_PRINT',
   321         for resource in ('STYLESHEETS', 'STYLESHEETS_PRINT',
   318                          'IE_STYLESHEETS', 'JAVASCRIPTS'):
   322                          'IE_STYLESHEETS', 'JAVASCRIPTS'):
   319             val = self.ext_resources[resource]
   323             val = self.ext_resources[resource]
   320             if isinstance(val, str):
   324             if isinstance(val, str):
   321                 files = [w.strip() for w in val.split(',') if w.strip()]
   325                 files = [w.strip() for w in val.split(',') if w.strip()]