Package suds :: Package xsd :: Module query :: Class Query
[hide private]
[frames] | no frames]

Class Query

source code

sudsobject.Object --+
                    |
                   Query
Known Subclasses:

Schema query base class.

Instance Methods [hide private]
 
__init__(self, ref=None) source code
sxbase.SchemaObject
execute(self, schema)
Execute this query using the specified schema.
source code
boolean
filter(self, result)
Filter the specified result based on query criteria.
source code
 
result(self, result)
Query result post processing.
source code

Inherited from sudsobject.Object: __contains__, __delattr__, __getitem__, __iter__, __len__, __repr__, __setattr__, __setitem__, __str__, __unicode__

Method Details [hide private]

__init__(self, ref=None)
(Constructor)

source code 
Parameters:
  • ref (qref) - The schema reference being queried.
Overrides: sudsobject.Object.__init__

execute(self, schema)

source code 

Execute this query using the specified schema.

Parameters:
  • schema (schema.Schema) - The schema associated with the query. The schema is used by the query to search for items.
Returns: sxbase.SchemaObject
The item matching the search criteria.

filter(self, result)

source code 

Filter the specified result based on query criteria.

Parameters:
Returns: boolean
True if result should be excluded.

result(self, result)

source code 

Query result post processing.

Parameters: