Updates last_changed, last_changed_by

svn: r19645
This commit is contained in:
Doug Blank
2012-05-25 15:00:39 +00:00
parent cfaee2894a
commit 47cdbffbb6
4 changed files with 25 additions and 89 deletions

View File

@@ -28,6 +28,7 @@
#------------------------------------------------------------------------
import locale
import sys
import datetime
#------------------------------------------------------------------------
#
@@ -722,6 +723,10 @@ def person_get_event(person, event_type=None):
def boolean(s):
return s.lower() in ["true", "1", "yes", "y", "t"]
def update_last_changed(obj, user):
obj.last_changed = datetime.datetime.now()
obj.last_changed_by = user
register_plugins()
# works after registering plugins: