From: Tony Mack Date: Wed, 14 Oct 2009 15:34:14 +0000 (+0000) Subject: mark 'last_updated, and date_created as readonly. Will remove readonly attribute... X-Git-Tag: sfa-0.9-6~191 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=971a5522c72101b2294c6b318575f1a18a201de8;hp=3a38cab925c552ff5ab0592f488332e9097822ca;p=sfa.git mark 'last_updated, and date_created as readonly. Will remove readonly attribute from last_updated field once timestamp support has been added --- 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()) ##