Updates last_changed, last_changed_by
svn: r19645
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user