git://git.onelab.eu
/
plstackapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
9525eba
)
add additional fields to notify_observer in disabled state
author
Scott Baker
<smbaker@gmail.com>
Wed, 5 Feb 2014 17:25:44 +0000
(09:25 -0800)
committer
Scott Baker
<smbaker@gmail.com>
Wed, 5 Feb 2014 17:25:44 +0000
(09:25 -0800)
planetstack/observer/__init__.py
patch
|
blob
|
history
diff --git
a/planetstack/observer/__init__.py
b/planetstack/observer/__init__.py
index
0d6c550
..
9318ddb
100644
(file)
--- a/
planetstack/observer/__init__.py
+++ b/
planetstack/observer/__init__.py
@@
-24,8
+24,8
@@
if (not observer_disabled):
print "Exception in Observer. This should not disrupt the front end. %s"%str(e)
else:
- def notify_observer(model=None, delete=False):
-
#
if (print_once):
-
#
print "The observer is disabled"
-
#
print_once = False
+ def notify_observer(model=None, delete=False
, pk=None, model_dict={}
):
+ if (print_once):
+ print "The observer is disabled"
+ print_once = False
return