Logo Search packages:      
Sourcecode: suds version File versions  Download package

def suds::xsd::query::BlindQuery::execute (   self,

Execute this query using the specified schema.
@param schema: The schema associated with the query.  The schema
    is used by the query to search for items.
@type schema: L{schema.Schema}
@return: The item matching the search criteria.
@rtype: L{sxbase.SchemaObject}

Reimplemented from suds::xsd::query::Query.

Definition at line 97 of file query.py.

00097                              :
        if schema.builtin(self.ref):
            name = self.ref[0]
            b = Factory.create(schema, name)
            log.debug('%s, found builtin (%s)', self.id, name)
            return b
        result = None
        for d in (schema.elements, schema.types):
            result = d.get(self.ref)
            if self.filter(result):
                result = None
        if result is None:
            eq = ElementQuery(self.ref)
            eq.history = self.history
            result = eq.execute(schema)
        return self.result(result)

class TypeQuery(Query):

Generated by  Doxygen 1.6.0   Back to index