def createDD(self): logging("Creating DueDate Class") R_DD = DueDate() logging( ( "Setting DueDate class with following: ", JSON_Holder["Database"]["DueDate"]["Name"], JSON_Holder["Database"]["DueDate"]["Date"], JSON_Holder["Database"]["DueDate"]["Time"], ) ) R_DD.setAll( JSON_Holder["Database"]["DueDate"]["Name"], JSON_Holder["Database"]["DueDate"]["Date"], JSON_Holder["Database"]["DueDate"]["Time"], ) DB.setDueDateC(R_DD)
def __init__(self): logging.debug('Initializing Data class') self.DueDate = DueDate() self.Reminder = Reminder() self.Note = Note() self.ID = 'Database' self.dbDict = { 'Database':{ 'DueDate':{ DueDate.returndDict() }, 'Reminder':{ Reminder.returnrDict() }, 'Note':{ Note.returnnDict() } } }
def __init__(self): self.DueDate = DueDate() self.Reminder = Reminder() self.Note = Note() self.ID = 'Database' self.dbDict = { 'Database':{ 'DueDate':{ 'Name': self.DueDate.returnName(), 'Date': self.DueDate.returnDate(), 'Time': self.DueDate.returnTime() }, 'Reminder':{ 'Date': self.Reminder.returnDate(), 'Time': self.Reminder.returnTime() }, 'Note':{ 'Note': self.Note.returnNote() } } } logging.debug('Initializing Data class')
class Data_rm(DueDate, Reminder, Note): def __init__(self): logging.debug('Initializing Data class') self.DueDate = DueDate() self.Reminder = Reminder() self.Note = Note() self.ID = 'Database' self.dbDict = { 'Database':{ 'DueDate':{ DueDate.returndDict() }, 'Reminder':{ Reminder.returnrDict() }, 'Note':{ Note.returnnDict() } } } # Returning Functions (Classses) # def returnDueDate(self): # logging.debug(('Returning Data::Duedate: ', self.DueDate)) # return self.DueDate # def returnReminder(self): # logging.debug(('Returning Data::Reminder: ', self.Reminder)) # return self.Reminder # def returnNote(self): # logging.debug(('Returning Data::Note: ', self.Note)) # return self.Note # def returnID(self): # logging.debug(('Returning Data::ID: ', self.ID)) # return self.ID # # Returning Functions (Dictionaries) # def returndDict(self): # logging.debug(('Returning Data::dDict: ', self.DueDate.returndDict())) # return self.DueDate.returndDict() # def returnrDict(self): # logging.debug(('Returning Date::rDict: ', self.Reminder.returnrDict())) # return self.Reminder.returnrDict() # def returnnDict(self): # logging.debug(('Returning Date::nDict: ', self.Note.returnnNote())) # return self.Note.returnrDict() # Setting Individual Functions: setX(params) # def setDueDate(self, name, date, time): # logging(('Setting Data::DueDate with parameters: ', name, date, time)) # logging(('Previous Data::DueDate parameters: ', self.DueDate.returnName(), # self.DueDate.returnDate(), # self.DueDate.returnTime())) # self.DueDate.setAll(name, date, time) # logging(('Present Data::DueDate parameters: ', self.DueDate.returnName(), # self.DueDate.returnDate(), # self.DueDate.returnTime())) # def setReminder(self, date, time): # logging(('Setting Data::Reminder with parameters: ', date, time)) # logging(('Previous Data::Reminder parameters: ', self.Reminder.returnDate(), # self.Reminder.returnTime())) # self.Reminder.setAll(date, time) # logging(('Present Data::Reminder parameters: ', self.Reminder.returnDate(), # self.Reminder.returnTime())) # def setNote(self, note): # logging(('Setting Data::Note with parameters: ', note)) # logging(('Previous Data::Note parameters: ', self.Note.returnNote())) # self.Note.setNote(note) # logging(('Present Data::Note parameters: ', self.Note.returnNote())) # Setting with Class: setXC(class) def setDueDateC(self, dd): logging(('Setting Data::DueDate with class: ', dd.returnName(), dd.returnDate(), dd.returnTime())) logging(('Previous Data::DueDate parameters: ', self.DueDate.returnName(), self.DueDate.returnDate(), self.DueDate.returnTime())) self.DueDate.setAll(dd.returnName(), dd.returnDate(), dd.returnTime()) logging(('Presetn Data::DueDate parameters: ', self.DueDate.returnName(), self.DueDate.returnDate(), self.DueDate.returnTime())) def setReminderC(self, r): logging(('Setting Data::Reminder with class: ', r.returnDate(), r.returnTime())) logging(('Previous Data::Reminder parameters: ', self.Reminder.returnDate(), self.Reminder.returnTime())) self.Reminder.setAll(r.returnDate(), r.returnTime()) logging(('Present Data::Reminder parameters: ', self.Reminder.returnDate(), self.Reminder.returnTime())) def setReminderC(self, n): logging(('Setting Data::Note with class: ', n.returnNote())) logging(('Previous Data::Note parameters: ', self.Note.returnNote())) self.Note.setNote(n.returnNote()) logging(('Present Data::Note parameters: ', self.Note.returnNOte())) # Clearing Classes def clearDueDate(self): logging('Clearing Data::DueDate class') self.DueDate.setAll(None, None, None) def clearReminder(self): logging('Clearing Data::Reminder class') self.Reminder.setAll(None, None, None) def clearNote(self): logging('Clearing Data::Note class') self.Note.setNote(None)
def createDD(self): logging('Creating DueDate Class') R_DD = DueDate() logging(('Setting DueDate class with following: ', JSON_Holder['DueDate']['Name'], JSON_Holder['DueDate']['Date'], JSON_Holder['DueDate']['Time'])) R_DD.setAll(JSON_Holder['DueDate']['Name'], JSON_Holder['DueDate']['Date'], JSON_Holder['DueDate']['Time']) DB.setDueDateC(R_DD)