From: Tony Mack Date: Wed, 22 Aug 2007 19:57:19 +0000 (+0000) Subject: - update 'last_updated' field X-Git-Tag: PLCAPI-4.2-0~85 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=e848398878d06cdc99f374052388fce4629645c5;p=plcapi.git - update 'last_updated' field --- diff --git a/PLC/Methods/UpdateNode.py b/PLC/Methods/UpdateNode.py index b20d3c5..d8128e0 100644 --- a/PLC/Methods/UpdateNode.py +++ b/PLC/Methods/UpdateNode.py @@ -60,6 +60,7 @@ class UpdateNode(Method): raise PLCPermissionDenied, "Not allowed to delete nodes from specified site" node.update(node_fields) + node.update_last_updated(False) node.sync() # Logging variables diff --git a/PLC/Methods/UpdatePerson.py b/PLC/Methods/UpdatePerson.py index 816f98e..790307e 100644 --- a/PLC/Methods/UpdatePerson.py +++ b/PLC/Methods/UpdatePerson.py @@ -53,6 +53,7 @@ class UpdatePerson(Method): raise PLCPermissionDenied, "Not allowed to update specified account" person.update(person_fields) + person.update_last_updated(False) person.sync() # Logging variables diff --git a/PLC/Methods/UpdateSite.py b/PLC/Methods/UpdateSite.py index 2e4d95d..03b1e13 100644 --- a/PLC/Methods/UpdateSite.py +++ b/PLC/Methods/UpdateSite.py @@ -60,6 +60,7 @@ class UpdateSite(Method): del site_fields[key] site.update(site_fields) + site.update_last_updated(False) site.sync() # Logging variables