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
Notice: curl_setopt(): CURLOPT_SSL_VERIFYHOST no longer accepts the value 1, value...
[plcapi.git]
/
PLC
/
Methods
/
DeleteConfFile.py
diff --git
a/PLC/Methods/DeleteConfFile.py
b/PLC/Methods/DeleteConfFile.py
index
181de69
..
fb7851d
100644
(file)
--- a/
PLC/Methods/DeleteConfFile.py
+++ b/
PLC/Methods/DeleteConfFile.py
@@
-1,4
+1,3
@@
-# $Id#
from PLC.Faults import *
from PLC.Method import Method
from PLC.Parameter import Parameter, Mixed
from PLC.Faults import *
from PLC.Method import Method
from PLC.Parameter import Parameter, Mixed
@@
-20,15
+19,15
@@
class DeleteConfFile(Method):
]
returns = Parameter(int, '1 if successful')
]
returns = Parameter(int, '1 if successful')
-
+
def call(self, auth, conf_file_id):
conf_files = ConfFiles(self.api, [conf_file_id])
if not conf_files:
def call(self, auth, conf_file_id):
conf_files = ConfFiles(self.api, [conf_file_id])
if not conf_files:
- raise PLCInvalidArgument
, "No such configuration file"
+ raise PLCInvalidArgument
("No such configuration file")
conf_file = conf_files[0]
conf_file.delete()
conf_file = conf_files[0]
conf_file.delete()
- self.event_objects = {'ConfFile': [conf_file['conf_file_id']]}
+
self.event_objects = {'ConfFile': [conf_file['conf_file_id']]}
return 1
return 1