git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b3b2b9
)
update the record's last updated field with the current time. last_updated field...
author
Tony Mack
<tmack@cs.princeton.edu>
Wed, 14 Oct 2009 16:30:07 +0000
(16:30 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Wed, 14 Oct 2009 16:30:07 +0000
(16:30 +0000)
sfa/methods/update.py
patch
|
blob
|
history
diff --git
a/sfa/methods/update.py
b/sfa/methods/update.py
index
2e97a5b
..
7d9e007
100644
(file)
--- a/
sfa/methods/update.py
+++ b/
sfa/methods/update.py
@@
-1,6
+1,7
@@
### $Id$
### $URL$
+import time
from sfa.util.faults import *
from sfa.util.method import Method
from sfa.util.parameter import Parameter, Mixed
@@
-50,6
+51,7
@@
class update(Method):
if not records:
raise RecordNotFound(hrn)
record = records[0]
+ record['last_updated'] = time.gmtime()
# Update_membership needs the membership lists in the existing record
# filled in, so it can see if members were added or removed