From: Mark Huang Date: Wed, 25 Oct 2006 19:34:46 +0000 (+0000) Subject: - fix return value documentation X-Git-Tag: pycurl-7_13_1~448 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=94fc875fa77709f6b48e0a0ca46dfa1089ba2c92;p=plcapi.git - fix return value documentation --- diff --git a/PLC/Methods/AdmGetSiteNodes.py b/PLC/Methods/AdmGetSiteNodes.py index 6deb6103..7eb822b9 100644 --- a/PLC/Methods/AdmGetSiteNodes.py +++ b/PLC/Methods/AdmGetSiteNodes.py @@ -8,8 +8,9 @@ class AdmGetSiteNodes(Method): """ Deprecated. See GetSites. - Return a dictionary containing a list of node_ids for each of the - sites specified. + Return a struct containing an array of node_ids for each of the + sites specified. Note that the keys of the struct are strings, not + integers, because of XML-RPC marshalling limitations. Admins may retrieve details about all nodes on a site by not specifying site_id_or_name or by specifying an empty list. Users and @@ -27,7 +28,7 @@ class AdmGetSiteNodes(Method): Site.fields['name'])], ] - returns = { Site.fields['site_id']: Site.fields['node_ids'] } + returns = dict def call(self, auth, site_id_or_name_list = None): # Get site information