Products.MightyCal.XMLSerialize (version 1.5)
index
/home/zope/lib/python/Products/MightyCal/XMLSerialize.py

#----------------------------------------------------------------------------------
# Name:               XMLSerialize.py
# Purpose:            XML Serialization Library
# Author:             Erik Norvelle (norvelle@ag.arizona.edu)
# Created:            17 July 2002
# Last Modified:      $Date: 2002/11/08 12:46:47 $
# Copyright:          (c) The University of Arizona
# License:            Zope Public License
#----------------------------------------------------------------------------------
#
# XML Serialization library.  Derived from the XML-RPC CLIENT LIBRARY
#
# These portions are:
# Copyright (c) 1999 by Secret Labs AB.
# Copyright (c) 1999 by Fredrik Lundh.
#
# fredrik@pythonware.com
# http://www.pythonware.com
#
# --------------------------------------------------------------------
# The original XML-RPC client interface is
# 
# Copyright (c) 1999 by Secret Labs AB
# Copyright (c) 1999 by Fredrik Lundh
# 
# By obtaining, using, and/or copying this software and/or its
# associated documentation, you agree that you have read, understood,
# and will comply with the following terms and conditions:
#
# Permission to use, copy, modify, and distribute this software and
# its associated documentation for any purpose and without fee is
# hereby granted, provided that the above copyright notice appears in
# all copies, and that both that copyright notice and this permission
# notice appear in supporting documentation, and that the name of
# Secret Labs AB or the author not be used in advertising or publicity
# pertaining to distribution of the software without specific, written
# prior permission.
#
# SECRET LABS AB AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD
# TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANT-
# ABILITY AND FITNESS.  IN NO EVENT SHALL SECRET LABS AB OR THE AUTHOR
# BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
# DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
# WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
# OF THIS SOFTWARE.
# --------------------------------------------------------------------

 
Modules
            
Products.MightyCal.MightyCal
base64
re
string
time
urllib
xmllib
xmlrpclib
zLOG

 
Classes
            
Binary
Boolean
DateTime
Marshaller
Unmarshaller
xmllib.XMLParser
SlowParser

 
class Binary
       
  
__init__(self, data=None)
decode(self, data)
encode(self, out)

 
class Boolean
       
  
__init__(self, value=0)
__int__(self)
__nonzero__(self)
__repr__(self)
encode(self, out)

 
class DateTime
       
  
__init__(self, value=0)
__repr__(self)
decode(self, data)
encode(self, out)

 
class Marshaller
      Generate an XML-RPC params chunk from a Python data structure
 
  
_Marshaller__dump = __dump(self, value)
__init__(self)
container(self, value)
dump_array(self, value)
dump_double(self, value)
dump_instance(self, value)
dump_int(self, value)
dump_long(self, value)
dump_string(self, value)
dump_struct(self, value)
dumps(self, values)

 
class SlowParser
       
  
__init__(self, target)

 
class Unmarshaller
       
  
__init__(self)
close(self)
data(self, text)
end(self, tag)
end_array(self)
end_base64(self, join=<function join>)
end_boolean(self, join=<function join>)
end_dateTime(self, join=<function join>)
end_double(self, join=<function join>)
end_fault(self)
end_int(self, join=<function join>)
end_methodName(self, join=<function join>)
end_params(self)
end_string(self, join=<function join>)
end_struct(self)
end_value(self)
getmethodname(self)
start(self, tag, attrs)

 
Functions
            
dumps(params, methodname=None, methodresponse=None)
getparser()
loads(data)
toDOM(data)
# Returns a complete DOM representing a serialized object
toDOMNode(data)
# Returns a <values> Node object.
toXML(data)
# Creates pretty-printed, stringified XML

 
Data
             BufferType = <type 'buffer'>

BuiltinFunctionType = <type 'builtin_function_or_method'>

BuiltinMethodType = <type 'builtin_function_or_method'>

ClassType = <type 'class'>

CodeType = <type 'code'>

ComplexType = <type 'complex'>

DictType = <type 'dictionary'>

DictionaryType = <type 'dictionary'>

EllipsisType = <type 'ellipsis'>

False = <Boolean False at 8b6c1fc>

FastParser = None

FileType = <type 'file'>

FloatType = <type 'float'>

FrameType = <type 'frame'>

FunctionType = <type 'function'>

InstanceType = <type 'instance'>

IntType = <type 'int'>

LambdaType = <type 'function'>

ListType = <type 'list'>

LongType = <type 'long int'>

MethodType = <type 'instance method'>

ModuleType = <type 'module'>

NoneType = <type 'None'>

SliceType = <type 'slice'>

StringType = <type 'string'>

TracebackType = <type 'traceback'>

True = <Boolean True at 8b69dcc>

TupleType = <type 'tuple'>

TypeType = <type 'type'>

UnboundMethodType = <type 'instance method'>

UnicodeType = <type 'unicode'>

WRAPPERS = (<class Products.MightyCal.XMLSerialize.DateTime>, <class Products.MightyCal.XMLSerialize.Binary>, <class Products.MightyCal.XMLSerialize.Boolean>)

XRangeType = <type 'xrange'>

__file__ = '/home/zope/lib/python/Products/MightyCal/XMLSerialize.pyc'

__name__ = 'Products.MightyCal.XMLSerialize'

__version__ = '$Revision: 1.5 $'

sgmlop = None