git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
FIT IoT-Lab shell: modified add_user category of user is required
[sfa.git]
/
sfa
/
server
/
modpython
/
SfaSliceMgrModPython.py
diff --git
a/sfa/server/modpython/SfaSliceMgrModPython.py
b/sfa/server/modpython/SfaSliceMgrModPython.py
index
61cb161
..
b059522
100755
(executable)
--- a/
sfa/server/modpython/SfaSliceMgrModPython.py
+++ b/
sfa/server/modpython/SfaSliceMgrModPython.py
@@
-16,6
+16,7
@@
from sfa.planetlab.server import SfaApi
api = SfaApi(interface='slicemgr')
api = SfaApi(interface='slicemgr')
+
def handler(req):
try:
if req.method != "POST":
def handler(req):
try:
if req.method != "POST":
@@
-50,7
+51,7
@@
def handler(req):
return apache.OK
return apache.OK
- except Exception
,
err:
+ except Exception
as
err:
# Log error in /var/log/httpd/(ssl_)?error_log
# Log error in /var/log/httpd/(ssl_)?error_log
- logger.log_exc('%r'
%
err)
+ logger.log_exc('%r'
%
err)
return apache.HTTP_INTERNAL_SERVER_ERROR
return apache.HTTP_INTERNAL_SERVER_ERROR