[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r8928 - trunk/gnue-common/src/definitions
From: |
jcater |
Subject: |
[gnue] r8928 - trunk/gnue-common/src/definitions |
Date: |
Wed, 25 Oct 2006 11:22:32 -0500 (CDT) |
Author: jcater
Date: 2006-10-25 11:22:31 -0500 (Wed, 25 Oct 2006)
New Revision: 8928
Modified:
trunk/gnue-common/src/definitions/GParserHelpers.py
Log:
Make all ParserObj's (and thus, all GObjs) into python new-style classes
Modified: trunk/gnue-common/src/definitions/GParserHelpers.py
===================================================================
--- trunk/gnue-common/src/definitions/GParserHelpers.py 2006-10-25 13:40:45 UTC
(rev 8927)
+++ trunk/gnue-common/src/definitions/GParserHelpers.py 2006-10-25 16:22:31 UTC
(rev 8928)
@@ -46,7 +46,7 @@
# Base class for GParser objects
# =============================================================================
-class ParserObj:
+class ParserObj(object):
"""
Base class for objects handled by a L{gnue.common.definitions.GParser}.
"""
@@ -56,7 +56,7 @@
# ---------------------------------------------------------------------------
def __init__ (self, parent = None, type = '_NotSet_'):
-
+
self._type = type
self._children = [] # The objects contained by this object
self._attributes = {}
@@ -286,7 +286,7 @@
@param lookupDict: dictionary describing the XML entities, their
attributes and types
- @param treeDump: if True, also include a XML representation of all
children
+ @param treeDump: if True, also include a XML representation of all children
@param gap: string defining the current indentation level
@param xmlnamespaces: dictionary with the available XML namespaces
@param textEncoding: encoding used to transform string-type attributes into
@@ -519,7 +519,7 @@
@param lookupDict: dictionary describing the XML entities, their
attributes and types
- @param treeDump: if True, also include a XML representation of all
children
+ @param treeDump: if True, also include a XML representation of all children
@param gap: string defining the current indentation level
@param xmlnamespaces: dictionary with the available XML namespaces
@param textEncoding: encoding used to transform string-type attributes into
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r8928 - trunk/gnue-common/src/definitions,
jcater <=