From 6e3a6f4a7efb934b088a6300443f87351818195e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jordi=20Puiggen=C3=A9?= Date: Thu, 28 Nov 2024 10:42:58 +0100 Subject: [PATCH] Make accessor and mutator from Patient to rely on base class --- src/senaite/patient/content/patient.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/senaite/patient/content/patient.py b/src/senaite/patient/content/patient.py index 25d0515..ef0e932 100644 --- a/src/senaite/patient/content/patient.py +++ b/src/senaite/patient/content/patient.py @@ -442,24 +442,6 @@ class Patient(Container): security = ClassSecurityInfo() - @security.private - def accessor(self, fieldname): - """Return the field accessor for the fieldname - """ - schema = api.get_schema(self) - if fieldname not in schema: - return None - return schema[fieldname].get - - @security.private - def mutator(self, fieldname): - """Return the field mutator for the fieldname - """ - schema = api.get_schema(self) - if fieldname not in schema: - return None - return schema[fieldname].set - @security.protected(permissions.View) def Title(self): return self.getFullname()