def __init__(self, config):
     GitShard.__init__(self, config['name'])
     self.repo_nexml2json = config['repo_nexml2json']
     d = {}
     for study in config['studies']:
         kl = study['keys']
         if len(kl) > 1:
             self.has_aliases = True
         for k in study['keys']:
             d[k] = (self.name, self.path, self.path + '/study/' + study['relpath'])
     self.study_index = d
 def __init__(self, config):
     GitShard.__init__(self, config['name'])
     self.assumed_doc_version = config['assumed_doc_version']
     d = {}
     for amendment in config['amendments']:
         kl = amendment['keys']
         if len(kl) > 1:
             self.has_aliases = True
         for k in amendment['keys']:
             complete_path = '{p}/{s}/{r}'.format(p=self.path, s=doc_holder_subpath, r=amendment['relpath'])
             d[k] = (self.name, self.path, complete_path)
     self.doc_index = d
Beispiel #3
0
 def __init__(self, config):
     GitShard.__init__(self, config['name'])
     self.repo_nexml2json = config['repo_nexml2json']
     d = {}
     for study in config['studies']:
         kl = study['keys']
         if len(kl) > 1:
             self.has_aliases = True
         for k in study['keys']:
             d[k] = (self.name, self.path,
                     self.path + '/study/' + study['relpath'])
     self.study_index = d
Beispiel #4
0
 def __init__(self, config):
     GitShard.__init__(self, config['name'])
     self.assumed_doc_version = config['assumed_doc_version']
     d = {}
     for amendment in config['amendments']:
         kl = amendment['keys']
         if len(kl) > 1:
             self.has_aliases = True
         for k in amendment['keys']:
             complete_path = '{p}/{s}/{r}'.format(p=self.path,
                                                  s=doc_holder_subpath,
                                                  r=amendment['relpath'])
             d[k] = (self.name, self.path, complete_path)
     self.doc_index = d