Package bw :: Module hermesclient :: Class HermesResource
[frames] | no frames]

Class HermesResource

object --+
         |
        HermesResource

Object representation of an XML based resource.

This class can be subclassed to handle site-specific XML data. Example:

       class GoogleResource(Resource):
               """Handles Google xml."""
               ...
Instance Methods
 
__init__(self, i)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
__getitem__(self, key)
 
__getattribute__(self, key)
x.__getattribute__('name') <==> x.name
 
get_attributes(self)
 
get_children(self)
 
get_name(self)
 
get_value(self)
 
__repr__(self)
repr(x)
 
__str__(self)
str(x)

Inherited from object: __delattr__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Properties

Inherited from object: __class__

Method Details

__init__(self, i)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

__getattribute__(self, key)

 

x.__getattribute__('name') <==> x.name

Overrides: object.__getattribute__
(inherited documentation)

__repr__(self)
(Representation operator)

 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__str__(self)
(Informal representation operator)

 

str(x)

Overrides: object.__str__
(inherited documentation)