schema.py
branchstable
changeset 2782 998f24dabd0d
parent 2742 9439c61eb84c
child 2788 8d3dbe577d3a
child 2920 64322aa83a1d
child 2926 4484387ed012
equal deleted inserted replaced
2781:4e1ad9d6a3e7 2782:998f24dabd0d
   872     def load(self, config, **kwargs):
   872     def load(self, config, **kwargs):
   873         """return a Schema instance from the schema definition read
   873         """return a Schema instance from the schema definition read
   874         from <directory>
   874         from <directory>
   875         """
   875         """
   876         self.info('loading %s schemas', ', '.join(config.cubes()))
   876         self.info('loading %s schemas', ', '.join(config.cubes()))
       
   877         self.extrapath = {}
       
   878         for cubesdir in config.cubes_search_path():
       
   879             if cubesdir != config.CUBES_DIR:
       
   880                 self.extrapath[cubesdir] = 'cubes'
   877         if config.apphome:
   881         if config.apphome:
   878             path = tuple(reversed([config.apphome] + config.cubes_path()))
   882             path = tuple(reversed([config.apphome] + config.cubes_path()))
   879         else:
   883         else:
   880             path = tuple(reversed(config.cubes_path()))
   884             path = tuple(reversed(config.cubes_path()))
   881         try:
   885         try: