Package suds :: Package xsd :: Module sxbasic :: Class Import
[hide private]
[frames] | no frames]

Class Import

source code

         object --+    
                  |    
sxbase.SchemaObject --+
                      |
                     Import

Represents an (xsd) schema <xs:import/> node

Instance Methods [hide private]
 
__init__(self, schema, root)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
Schema
open(self, options)
Open and import the refrenced schema.
source code
 
locate(self)
find the schema locally
source code
 
download(self, options)
download the schema
source code
[str,...]
description(self)
Get the names used for str() and repr() description.
source code

Inherited from sxbase.SchemaObject: __getitem__, __iter__, __len__, __repr__, __str__, __unicode__, all, any, attributes, autoqualified, builtin, children, childtags, choice, content, default_namespace, dependencies, enum, extension, find, get_attribute, get_child, isattr, merge, mixed, namespace, optional, qualify, required, resolve, restriction, sequence, str, translate, unbounded, xslist

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]
 
bind(cls, ns, location=None)
Bind a namespace to a schema location (URI).
source code

Inherited from sxbase.SchemaObject: append, prepend

Class Variables [hide private]
dict locations = {'http://schemas.xmlsoap.org/soap/encoding/': 'sud...
A dictionary of namespace locations.
Instance Variables [hide private]
namespace-uri location
The (optional) location.
str ns
The imported namespace.
boolean opened
Opened and imported flag.

Inherited from sxbase.SchemaObject: default, form_qualified, nillable, rawchildren, root, schema

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

bind(cls, ns, location=None)
Class Method

source code 

Bind a namespace to a schema location (URI). This is used for imports that don't specify a schemaLocation.

Parameters:
  • ns (str) - A namespace-uri.
  • location (str) - The (optional) schema location for the namespace. (default=ns).

__init__(self, schema, root)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • schema - The containing schema.
  • root - The xml root node.
Overrides: object.__init__
(inherited documentation)

open(self, options)

source code 

Open and import the refrenced schema.

Parameters:
Returns: Schema
The referenced schema.

description(self)

source code 

Get the names used for str() and repr() description.

Returns: [str,...]
A dictionary of relavent attributes.
Overrides: sxbase.SchemaObject.description
(inherited documentation)

Class Variable Details [hide private]

locations

A dictionary of namespace locations.
Type:
dict
Value:
{'http://schemas.xmlsoap.org/soap/encoding/': 'suds://schemas.xmlsoap.\
org/soap/encoding/',
 'http://www.w3.org/2001/XMLSchema': 'http://www.w3.org/2001/XMLSchema\
.xsd',
 'http://www.w3.org/XML/1998/namespace': 'http://www.w3.org/2001/xml.x\
sd'}