Document.get([], string selectionCriteria, int skip, int maxCount)

Use this call to see the core attributes of the documents that match the selection criteria.

Parameters

Parameter Description
[ ] Providing a list of specific attributes causes the call to fail with a ClassCastException. Use “[ ]” to return only the core set of attributes for each document.
selectionCriteria The selection criteria you want.
skip This parameter allows you to exclude some documents from the results. Which documents it excludes depends on what value you assign. For example, this call would exclude the first 50 documents if you assigned it the value of 50.
maxCount The maximum number of entries you want returned.

Returns

This call returns the core attributes of the documents that match the selection criteria. Each entry is a core set of attributes for each document, a good way to find a subset of documents on a large system.

Example

from ConnectDefs import * 
import xmlrpclib

myProxy = None

try:
   myProxy = connectLogin("AcmeServer", "aiw", "password") 
   myJobData = myProxy.Document.get([], "Doc.ID < 5", 0, 50)
   print myJobData
    
except xmlrpcFault, err:
   print err.faultString + " (" + str(err.faultCode) + ")"
finally:
   connectLogout(myProxy, "aiw")

[{'Doc.ID': 1, 'Document.ID': '1', 'Type': 'Document'}, {'Doc.ID': 2, 
'Document.ID': '2', 'Type': 'Document'}, {'Doc.ID': 3, 'Document.ID': 
'3', 'Type': 'Document'}, {'Doc.ID': 4, 'Document.ID': '4', 'Type': 
'Document'}]