From ce747fda823a8bfe58fc405d23d9055b78533615 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Mon, 26 Oct 2009 17:23:39 +0000 Subject: [PATCH] set last_updated and date_created as read only fields --- sfa/util/record.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sfa/util/record.py b/sfa/util/record.py index a59a9c7c..45b77db0 100644 --- a/sfa/util/record.py +++ b/sfa/util/record.py @@ -49,8 +49,8 @@ class GeniRecord(dict): 'hrn': Parameter(str, "Human readable name of object"), 'gid': Parameter(str, "GID of the object"), 'type': Parameter(str, "Record type"), - 'last_updated': Parameter(int, 'Date and time of last update'), - 'date_created': Parameter(int, 'Date and time this record was created'), + 'last_updated': Parameter(int, 'Date and time of last update', ro=True), + 'date_created': Parameter(int, 'Date and time this record was created', ro=True), } all_fields = dict(fields.items() + internal_fields.items()) ## -- 2.43.0