def toString(self): base = "<Appointment>" for key, value in model.getFieldMap(self).items(): base += key + "=>" + str(value) + "\n" return base
def fields(self): """ Returns a dictionary of all the class fields """ return model.getFieldMap(self)
def __eq__(self, other): return self.fields() == model.getFieldMap(other)
def __eq__(self, other): return model.getFieldMap(self) == model.getFieldMap(other)