Package suds :: Package sax :: Module text :: Class Text
[hide private]
[frames] | no frames]

Class Text

source code

object --+        
         |        
basestring --+    
             |    
       unicode --+
                 |
                Text
Known Subclasses:

An XML text object used to represent text content.

Instance Methods [hide private]
Text
escape(self)
Encode (escape) special XML characters.
source code
Text
unescape(self)
Decode (unescape) special XML characters.
source code
 
trim(self) source code
 
__add__(self, other)
x+y
source code
 
__repr__(self)
repr(x)
source code
 
__getstate__(self) source code
 
__setstate__(self, state) source code

Inherited from unicode: __contains__, __eq__, __format__, __ge__, __getattribute__, __getitem__, __getnewargs__, __getslice__, __gt__, __hash__, __le__, __len__, __lt__, __mod__, __mul__, __ne__, __rmod__, __rmul__, __sizeof__, __str__, capitalize, center, count, decode, encode, endswith, expandtabs, find, format, index, isalnum, isalpha, isdecimal, isdigit, islower, isnumeric, isspace, istitle, isupper, join, ljust, lower, lstrip, partition, replace, rfind, rindex, rjust, rpartition, rsplit, rstrip, split, splitlines, startswith, strip, swapcase, title, translate, upper, zfill

Inherited from unicode (private): _formatter_field_name_split, _formatter_parser

Inherited from object: __delattr__, __init__, __reduce__, __reduce_ex__, __setattr__, __subclasshook__

Class Methods [hide private]
 
__valid(cls, *args) source code
Static Methods [hide private]
a new object with type S, a subtype of T
__new__(cls, *args, **kwargs) source code
Instance Variables [hide private]
bool escaped
The (optional) XML special character escaped flag.
bool lang
The (optional) language flag.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__new__(cls, *args, **kwargs)
Static Method

source code 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__
(inherited documentation)

escape(self)

source code 

Encode (escape) special XML characters.

Returns: Text
The text with XML special characters escaped.

unescape(self)

source code 

Decode (unescape) special XML characters.

Returns: Text
The text with escaped XML special characters decoded.

__add__(self, other)
(Addition operator)

source code 

x+y

Overrides: unicode.__add__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)