Skip to content

Commit

Permalink
Make accessor and mutator from Patient to rely on base class
Browse files Browse the repository at this point in the history
  • Loading branch information
xispa committed Nov 28, 2024
1 parent 3709228 commit 6e3a6f4
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/senaite/patient/content/patient.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 6e3a6f4

Please sign in to comment.