From: Marc Fiuczynski Date: Fri, 22 May 2009 03:54:35 +0000 (+0000) Subject: make sure GetNodes has a doc section X-Git-Tag: PLCAPI-4.3-15~10 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=aa5510cd4390f7a919c6788729e90223c592b184;p=plcapi.git make sure GetNodes has a doc section --- diff --git a/PLC/Methods/GetNodes.py b/PLC/Methods/GetNodes.py index d36b3ca..29c4ccb 100644 --- a/PLC/Methods/GetNodes.py +++ b/PLC/Methods/GetNodes.py @@ -87,6 +87,17 @@ node_fields = Node.fields.copy() node_fields['nodenetwork_ids']=Parameter([int], "Legacy version of interface_ids") class v42GetNodes(v43GetNodes): + # XXX is there a way to inherit the doc from v43GetNodes? + """ + Returns an array of structs containing details about nodes. If + node_filter is specified and is an array of node identifiers or + hostnames, or a struct of node attributes, only nodes matching the + filter will be returned. If return_fields is specified, only the + specified details will be returned. + + Some fields may only be viewed by admins. + """ + accepts = [ Auth(), Mixed([Mixed(Node.fields['node_id'],