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
Housekeeping.
[plcapi.git]
/
PLC
/
Methods
/
SliceCreate.py
diff --git
a/PLC/Methods/SliceCreate.py
b/PLC/Methods/SliceCreate.py
index
11a700c
..
cc30b52
100644
(file)
--- a/
PLC/Methods/SliceCreate.py
+++ b/
PLC/Methods/SliceCreate.py
@@
-1,7
+1,7
@@
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
-from PLC.Auth import
Password
Auth
+from PLC.Auth import Auth
from PLC.Slices import Slice, Slices
from PLC.Methods.AddSlice import AddSlice
from PLC.Slices import Slice, Slices
from PLC.Methods.AddSlice import AddSlice
@@
-13,10
+13,12
@@
class SliceCreate(AddSlice):
status = "deprecated"
accepts = [
status = "deprecated"
accepts = [
-
Password
Auth(),
+ Auth(),
Slice.fields['name'],
AddSlice.accepts[1]
]
Slice.fields['name'],
AddSlice.accepts[1]
]
+
+ returns = Parameter(int, 'New slice_id (> 0) if successful')
def call(self, auth, name, slice_fields = {}):
slice_fields['name'] = name
def call(self, auth, name, slice_fields = {}):
slice_fields['name'] = name