Exemplo n.º 1
0
 def __init__(self, catalog_dsn: str, zones: Dict[str, str]) -> None:
     self.arranger, self.provider = resolve_managers({
         'cataloguer_kind': 'schema',
         'catalog_dsn': catalog_dsn,
         'provisioner_kind': 'schema',
         'provision_schema_zones': zones
     })
Exemplo n.º 2
0
 def __init__(self, catalog_path: str, zones: Dict[str, str],
              directory_template='__template__') -> None:
     directory_template = str(Path(zones['default']) / '__template__')
     self.arranger, self.provider = resolve_managers({
         'cataloguer_kind': 'json',
         'catalog_path': catalog_path,
         'provisioner_kind': 'directory',
         'provision_template': directory_template,
         'provision_directory_zones': zones
     })
Exemplo n.º 3
0
 def __init__(self, connection: SchemaConnection, zones: Dict[str,
                                                              str]) -> None:
     self.arranger, self.provider = resolve_managers({
         'cataloguer_kind':
         'schema',
         'catalog_connection':
         connection,
         'provisioner_kind':
         'schema',
         'provision_schema_zones':
         zones
     })
     self.arranger.cataloguer.placeholder = '%s'
Exemplo n.º 4
0
 def __init__(self) -> None:
     self.arranger, self.provider = resolve_managers({})