Package PyFoam :: Package Paraview :: Module StateFile :: Class Proxy
[hide private]
[frames] | no frames]

Class Proxy

source code

object --+
         |
        Proxy

Convenience class for handling proxies

Instance Methods [hide private]
 
__init__(self, xml)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
setProperty(self, name, value, index=None)
Set a property in a proxy
source code
 
getProperty(self, name, index=None)
Get a property in a proxy
source code
 
rewriteProperty(self, name, values, index=None)
Rewrites a property by replacing all strings of the form %%(key)s (Python-notation for dictionary-replacement) with a corresponding value
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, xml)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

setProperty(self, name, value, index=None)

source code 

Set a property in a proxy

Parameters:
  • name - name of the property
  • value - the new value
  • index - Index. If not specified all elements are changed

getProperty(self, name, index=None)

source code 

Get a property in a proxy

Parameters:
  • name - name of the property
  • index - Index. If not specified all elements are changed

rewriteProperty(self, name, values, index=None)

source code 

Rewrites a property by replacing all strings of the form %%(key)s (Python-notation for dictionary-replacement) with a corresponding value

Parameters:
  • name - name of the property
  • values - Dictionary with the keys and the corresponding values
  • index - Index. If not specified all elements are changed