Пример #1
0
	def toString(self):
		base = "<Appointment>"
		
		for key, value in model.getFieldMap(self).items():
			base += key + "=>" + str(value) + "\n"
		
		return base
Пример #2
0
	def fields(self):
		"""
		Returns a dictionary of all the class fields
		"""
		return model.getFieldMap(self)
Пример #3
0
	def __eq__(self, other):
		return self.fields() == model.getFieldMap(other)
Пример #4
0
	def __eq__(self, other):
		return model.getFieldMap(self) == model.getFieldMap(other)