cwconfig.py
branchstable
changeset 2220 64aace08ae2f
parent 1977 606923dff11b
child 2221 d9b85a7b0bdd
equal deleted inserted replaced
2219:bb5098e74b82 2220:64aace08ae2f
   741                     self._load_site_cubicweb(sitefile)
   741                     self._load_site_cubicweb(sitefile)
   742                     self._site_loaded.add(sitefile)
   742                     self._site_loaded.add(sitefile)
   743                     self.warning('site_erudi.py is deprecated, should be renamed to site_cubicweb.py')
   743                     self.warning('site_erudi.py is deprecated, should be renamed to site_cubicweb.py')
   744 
   744 
   745     def _load_site_cubicweb(self, sitefile):
   745     def _load_site_cubicweb(self, sitefile):
   746         context = {}
   746         context = {'__file__': sitefile}
   747         execfile(sitefile, context, context)
   747         execfile(sitefile, context, context)
   748         self.info('%s loaded', sitefile)
   748         self.info('%s loaded', sitefile)
   749         # cube specific options
   749         # cube specific options
   750         if context.get('options'):
   750         if context.get('options'):
   751             self.register_options(context['options'])
   751             self.register_options(context['options'])