Package suds :: Module store :: Class DocumentStore
[hide private]
[frames] | no frames]

Class DocumentStore

source code

The suds document store provides a local repository for xml documnts.

Instance Methods [hide private]
StringIO
open(self, url)
Open a document at the specified url.
source code
StringIO
find(self, location)
Find the specified location in the store.
source code
tuple
split(self, url)
Split the url into protocol and location
source code
Class Variables [hide private]
str protocol = 'suds'
The URL protocol for the store.
dict store = {'schemas.xmlsoap.org/soap/encoding/': '<?xml version=...
The mapping of URL location to documents.
Method Details [hide private]

open(self, url)

source code 

Open a document at the specified url.

Parameters:
  • url (str) - A document URL.
Returns: StringIO
A file pointer to the document.

find(self, location)

source code 

Find the specified location in the store.

Parameters:
  • location (str) - The location part of a URL.
Returns: StringIO
An input stream to the document.

split(self, url)

source code 

Split the url into protocol and location

Parameters:
  • url - A URL.
  • url - str
Returns: tuple
(url, location)

Class Variable Details [hide private]

store

The mapping of URL location to documents.
Type:
dict
Value:
{'schemas.xmlsoap.org/soap/encoding/': '''<?xml version="1.0" encoding\
="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http\
://schemas.xmlsoap.org/soap/encoding/" targetNamespace="http://schemas\
.xmlsoap.org/soap/encoding/">
        
 <xs:attribute name="root">
   <xs:annotation>
...