git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
review 'print' statements - make sure to use PLC.Debug.log that gets redirected to...
[plcapi.git]
/
PLC
/
Methods
/
DeleteSession.py
diff --git
a/PLC/Methods/DeleteSession.py
b/PLC/Methods/DeleteSession.py
index
545adfd
..
3898f51
100644
(file)
--- a/
PLC/Methods/DeleteSession.py
+++ b/
PLC/Methods/DeleteSession.py
@@
-16,10
+16,11
@@
class DeleteSession(Method):
accepts = [SessionAuth()]
returns = Parameter(int, '1 if successful')
accepts = [SessionAuth()]
returns = Parameter(int, '1 if successful')
+
def call(self, auth):
assert auth.has_key('session')
def call(self, auth):
assert auth.has_key('session')
- sessions = Sessions(self.api, [auth['session']])
.values()
+ sessions = Sessions(self.api, [auth['session']])
if not sessions:
raise PLCAPIError, "No such session"
session = sessions[0]
if not sessions:
raise PLCAPIError, "No such session"
session = sessions[0]