equal
deleted
inserted
replaced
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']) |