From 93e3ae9d4682c6a8d269bc5d2b92706b2b66ab28 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Wed, 7 Mar 2012 14:10:04 -0500 Subject: [PATCH] added get_field() --- sfa/storage/record.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sfa/storage/record.py b/sfa/storage/record.py index 5c5238e2..fcde62cb 100644 --- a/sfa/storage/record.py +++ b/sfa/storage/record.py @@ -14,6 +14,10 @@ class Record: xml_dict = xml_record.todict() self.load_from_dict(xml_dict) + + def get_field(self, field): + return self.__dict__.get(field, None) + # xxx fixme # turns out the date_created field is received by the client as a 'created' int # (and 'last_updated' does not make it at all) -- 2.43.0