schema.py
changeset 372 a8a975a88368
parent 0 b97547f5f1fa
child 479 ac5c9442b1fd
equal deleted inserted replaced
371:4e849b424aaa 372:a8a975a88368
   866     def load(self, config):
   866     def load(self, config):
   867         """return a Schema instance from the schema definition read
   867         """return a Schema instance from the schema definition read
   868         from <directory>
   868         from <directory>
   869         """
   869         """
   870         self.info('loading %s schemas', ', '.join(config.cubes()))
   870         self.info('loading %s schemas', ', '.join(config.cubes()))
   871         path = reversed([config.apphome] + config.cubes_path())
   871         if config.apphome:
       
   872             path = reversed([config.apphome] + config.cubes_path())
       
   873         else:
       
   874             path = reversed(config.cubes_path())
   872         return super(CubicWebSchemaLoader, self).load(config, path=path)
   875         return super(CubicWebSchemaLoader, self).load(config, path=path)
   873 
   876 
   874     def _load_definition_files(self, cubes):
   877     def _load_definition_files(self, cubes):
   875         for filepath in (self.include_schema_files('bootstrap')
   878         for filepath in (self.include_schema_files('bootstrap')
   876                          + self.include_schema_files('base')
   879                          + self.include_schema_files('base')