Exemple #1
0
 def create_or_refresh_cache(self,
                             roles=settings.ASSISTANT_ROLES,
                             assistants='assistants'):
     for role in roles:
         dirs = [
             os.path.join(d, assistants, role)
             for d in settings.DATA_DIRECTORIES
         ]
         fh = YamlAssistantLoader.get_assistants_file_hierarchy(dirs)
         self.cch.refresh_role(role, fh)
Exemple #2
0
 def create_or_refresh_cache(self, roles=settings.ASSISTANT_ROLES, assistants='assistants'):
     for role in roles:
         dirs =[os.path.join(d, assistants, role) for d in settings.DATA_DIRECTORIES]
         fh = YamlAssistantLoader.get_assistants_file_hierarchy(dirs)
         self.cch.refresh_role(role, fh)