Esempio n. 1
0
    def __init__(self, **kwargs):
        if not self.__tupleType__:
            raise NotImplementedError(
                "TupleActionABC can not be instantiated,"
                " please inherit it and implement a tuple"
            )

        Tuple.__init__(self, **kwargs)

        if not "uuid" in kwargs:
            self.uuid = str(uuid.uuid1())  # Based on the host, and the time

        if not "dateTime" in kwargs:
            self.dateTime = datetime.now(pytz.utc)
Esempio n. 2
0
 def __init__(self, key=None, value=None):
     PolymorphicVerticalProperty.__init__(self, key=key, value=value)
     Tuple.__init__(self)
Esempio n. 3
0
 def __init__(self, *args, **kwargs):
     # logger.debug("TestTuple constructed")
     Tuple.__init__(self, *args, **kwargs)
Esempio n. 4
0
 def __init__(self,
              name: Optional[str] = None,
              selector: Optional[Dict] = None) -> None:
     Tuple.__init__(self)
     self.name = name
     self.selector = selector if selector else {}
Esempio n. 5
0
 def __init__(self, **kwargs):
     Tuple.__init__(self, **kwargs)
     self.packedJson__ = [None] * (BranchTuple.__LAST_INDEX_NUM + 1)