From: Tony Mack Date: Mon, 26 Oct 2009 17:25:01 +0000 (+0000) Subject: set last_updated and date_created as read only fields X-Git-Tag: sfa-0.9-5^0 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=2b0f5d91d9e53aeef3f0012940432e4c955b619d;hp=dcbd34b7bd9ee3e9285313ed445029e0f3743b9f;p=sfa.git set last_updated and date_created as read only fields --- 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()) ##