projects
/
pykit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
6026eb3
)
call init.py/shutdown on application close
Stefan Bund [Sun, 16 Jan 2011 20:47:12 +0000 (21:47 +0100)]
PythonPublisher.cc
patch
|
blob
|
history
diff --git
a/PythonPublisher.cc
b/PythonPublisher.cc
index
410f707
..
c6ad1fc
100644
(file)
--- a/
PythonPublisher.cc
+++ b/
PythonPublisher.cc
@@
-459,7
+459,12
@@
prefix_ pykit::PythonPublisher::PythonPublisher()
}
prefix_ pykit::PythonPublisher::~PythonPublisher()
-{}
+{
+ try {
+ impl_->mainNamespace["shutdown"]();
+ }
+ catch (...) {;}
+}
prefix_ void pykit::PythonPublisher::publish(Request & request)
{