Package suds :: Module reader :: Class DefinitionsReader
[hide private]
[frames] | no frames]

Class DefinitionsReader

source code

Reader --+
         |
        DefinitionsReader

The WSDL definitions reader provides an integration between the Definitions and the object cache.

Instance Methods [hide private]
 
__init__(self, options, fn) source code
Definitions
open(self, url)
Open a WSDL at the specified url.
source code
Cache
cache(self)
Get the cache.
source code

Inherited from Reader: mangle

Instance Variables [hide private]
Constructor fn
A factory function (constructor) used to create the object not found in the cache.

Inherited from Reader: options

Method Details [hide private]

__init__(self, options, fn)
(Constructor)

source code 
Parameters:
  • options (Options) - An options object.
  • fn (Constructor) - A factory function (constructor) used to create the object not found in the cache.
Overrides: Reader.__init__

open(self, url)

source code 

Open a WSDL at the specified url. First, the WSDL attempted to be retrieved from the object cache. After unpickled from the cache, the options attribute is restored. If not found, it is downloaded and instantiated using the fn constructor and added to the cache for the next open().

Parameters:
  • url (str.) - A WSDL url.
Returns: Definitions
The WSDL object.

cache(self)

source code 

Get the cache.

Returns: Cache
The options when cachingpolicy = 1.