You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1002 B

import hashlib
class PiscoObject:
def __init__(self, type, uid):
self.type = type
self.uid = uid
self.__status = ""
self.__summary = ""
self.__scheduled = None
def scheduled(self):
if self.__scheduled is None:
return None
return self.__scheduled.strftime("<%Y-%m-%d %a %H:%M>")
def scheduled(self, value):
self.__scheduled = value
def status(self):
return self.__status
def status(self, value):
self.__status = value
def summary(self):
return self.__summary
def summary(self, value):
self.__summary = value
def chkSum(self):
# self.chkSum = hashlib.sha256(vObject.serialize()
# .encode("utf-8")).hexdigest()
# print(vObject.serialize() .encode("utf-8"))