Package AccessGrid :: Package hosting :: Package SOAPpy :: Module Tools
[show private | hide private]
[frames | no frames]

Module AccessGrid.hosting.SOAPpy.Tools

SOAPpy tools for making life easier.

This module defines methods for making serialization and other things simpler when using the SOAPpy module.
Classes
_a a dummy class we use to create an object, then set it's class.

Function Summary
  CreateBlank(p)
This is a utility method to create an object of a specified class.
  Decorate(obj)
This method traverses a object hierarchy rooted at object.
  Reconstitute(obj)
This method takes an object that has been sent across the network via SOAPpy and rebuilds a real python object from it.

Variable Summary
str __revision__ = '$Id: Tools.py,v 1.10 2004/09/10 03:58:54...

Function Details

CreateBlank(p)

This is a utility method to create an object of a specified class.
Parameters:
p - the module/class name
           (type=string)
Returns:
a python object of class p

Decorate(obj)

This method traverses a object hierarchy rooted at object. It tags each object with an attribute ag_class with the class this is. This makes it possible to rebuild these classes on the other side of a SOAP call.
Parameters:
obj - an object to annotate
           (type=a python object)
Returns:
obj with annotations

Reconstitute(obj)

This method takes an object that has been sent across the network via SOAPpy and rebuilds a real python object from it.
Parameters:
obj - an annotated object from the network
           (type=SOAPpy typed object)
Returns:
a native python object.

Variable Details

__revision__

Type:
str
Value:
'$Id: Tools.py,v 1.10 2004/09/10 03:58:54 judson Exp $'                

Generated by Epydoc 2.1 on Thu Apr 14 16:39:28 2005 http://epydoc.sf.net