895 return super(BootstrapSchemaLoader, self).load( |
895 return super(BootstrapSchemaLoader, self).load( |
896 path, config.appid, register_base_types=False, **kwargs) |
896 path, config.appid, register_base_types=False, **kwargs) |
897 |
897 |
898 def _load_definition_files(self, cubes=None): |
898 def _load_definition_files(self, cubes=None): |
899 # bootstraping, ignore cubes |
899 # bootstraping, ignore cubes |
900 for filepath in self.include_schema_files('bootstrap'): |
900 filepath = join(self.lib_directory, 'bootstrap.py') |
901 self.info('loading %s', filepath) |
901 self.info('loading %s', filepath) |
902 self.handle_file(filepath) |
902 self.handle_file(filepath) |
903 |
903 |
904 def unhandled_file(self, filepath): |
904 def unhandled_file(self, filepath): |
905 """called when a file without handler associated has been found""" |
905 """called when a file without handler associated has been found""" |
906 self.warning('ignoring file %r', filepath) |
906 self.warning('ignoring file %r', filepath) |
907 |
907 |
921 else: |
921 else: |
922 path = reversed(config.cubes_path()) |
922 path = reversed(config.cubes_path()) |
923 return super(CubicWebSchemaLoader, self).load(config, path=path, **kwargs) |
923 return super(CubicWebSchemaLoader, self).load(config, path=path, **kwargs) |
924 |
924 |
925 def _load_definition_files(self, cubes): |
925 def _load_definition_files(self, cubes): |
926 for filepath in (self.include_schema_files('bootstrap') |
926 for filepath in (join(self.lib_directory, 'bootstrap.py'), |
927 + self.include_schema_files('base') |
927 join(self.lib_directory, 'base.py'), |
928 + self.include_schema_files('workflow') |
928 join(self.lib_directory, 'workflow.py'), |
929 + self.include_schema_files('Bookmark')): |
929 join(self.lib_directory, 'Bookmark.py')): |
930 self.info('loading %s', filepath) |
930 self.info('loading %s', filepath) |
931 self.handle_file(filepath) |
931 self.handle_file(filepath) |
932 for cube in cubes: |
932 for cube in cubes: |
933 for filepath in self.get_schema_files(cube): |
933 for filepath in self.get_schema_files(cube): |
934 self.info('loading %s', filepath) |
934 self.info('loading %s', filepath) |