From: Thierry Parmentelat Date: Mon, 24 Sep 2012 09:45:52 +0000 (+0200) Subject: fix various glitches for getting this branch to pass wsdl generation X-Git-Tag: sfa-3.0-0~112^2~7 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=b8594ba57403a1b48f809e9834c956893625c722;hp=7a1d34a07426961f0d08aeda0e8fe8c8b5caa4f6;p=sfa.git fix various glitches for getting this branch to pass wsdl generation --- diff --git a/sfa/methods/Delete.py b/sfa/methods/Delete.py index 9ed6e985..74ff8384 100644 --- a/sfa/methods/Delete.py +++ b/sfa/methods/Delete.py @@ -16,7 +16,7 @@ class Delete(Method): interfaces = ['aggregate', 'slicemgr', 'component'] accepts = [ - Parameter([str], "Human readable name of slice to delete (hrn or urn)"), + Parameter(type([str]), "Human readable name of slice to delete (hrn or urn)"), Parameter(dict, "Credentials"), Parameter(dict, "options"), ] diff --git a/sfa/methods/Provision.py b/sfa/methods/Provision.py index 60510932..21ab93da 100644 --- a/sfa/methods/Provision.py +++ b/sfa/methods/Provision.py @@ -22,7 +22,7 @@ class Provision(Method): """ interfaces = ['aggregate', 'slicemgr'] accepts = [ - Parameter([str], "URNs"), + Parameter(type([str]), "URNs"), Parameter(dict, "Credentials"), Parameter(dict, "options"), ] diff --git a/sfa/methods/Shutdown.py b/sfa/methods/Shutdown.py index d2880362..e532d1dc 100644 --- a/sfa/methods/Shutdown.py +++ b/sfa/methods/Shutdown.py @@ -13,7 +13,7 @@ class Shutdown(Method): interfaces = ['aggregate', 'slicemgr'] accepts = [ Parameter(str, "Slice URN"), - Parameter(type(dict), "Credentials"), + Parameter(dict, "Credentials"), ] returns = Parameter(bool, "Success or Failure") diff --git a/sfa/methods/Status.py b/sfa/methods/Status.py index 951871d0..83aa023a 100644 --- a/sfa/methods/Status.py +++ b/sfa/methods/Status.py @@ -12,8 +12,8 @@ class Status(Method): """ interfaces = ['aggregate', 'slicemgr', 'component'] accepts = [ - Parameter([str], "Slice or sliver URNs"), - Parameter(dict), "credentials")), + Parameter(type([str]), "Slice or sliver URNs"), + Parameter(dict, "credentials"), Parameter(dict, "Options") ] returns = Parameter(dict, "Status details")