Beispiel #1
0
 def __init__(self, keys: List[str], labbook: LabBook,
              username: str) -> None:
     DataLoader.__init__(self)
     self.keys = keys
     self.results: Dict[str, PackageMetadata] = dict()
     self.labbook = labbook
     self.username = username
Beispiel #2
0
 def __init__(self, keys: List[str], labbook: LabBook,
              username: str) -> None:
     DataLoader.__init__(self)
     self.keys = keys
     self.latest_versions: dict = dict()
     self.labbook = labbook
     self.username = username
Beispiel #3
0
 def __init__(self, inner_model, outer_model, pk_inner_model=None):
     DataLoader.__init__(self)
     self._inner_model = inner_model
     self._outer_model = outer_model
     if pk_inner_model:
         self._pk_inner_model = pk_inner_model
     else:
         self._pk_inner_model = getattr(
             self._inner_model,
             inspect(self._inner_model).primary_key[0].name)