[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/gnue-common/src GObjects.py GParser.py GPa...
From: |
Jason Cater |
Subject: |
gnue/gnue-common/src GObjects.py GParser.py GPa... |
Date: |
Mon, 19 Nov 2001 20:45:17 -0500 |
CVSROOT: /home/cvs
Module name: gnue
Changes by: Jason Cater <address@hidden> 01/11/19 20:45:17
Modified files:
gnue-common/src: GObjects.py GParser.py
Added files:
gnue-common/src: GParserHelpers.py
Log message:
cleaned up imports
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-common/src/GParserHelpers.py?cvsroot=OldCVS&rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-common/src/GObjects.py.diff?cvsroot=OldCVS&tr1=1.21&tr2=1.22&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-common/src/GParser.py.diff?cvsroot=OldCVS&tr1=1.24&tr2=1.25&r1=text&r2=text
Patches:
Index: gnue/gnue-common/src/GObjects.py
diff -u gnue/gnue-common/src/GObjects.py:1.21
gnue/gnue-common/src/GObjects.py:1.22
--- gnue/gnue-common/src/GObjects.py:1.21 Wed Oct 10 00:48:02 2001
+++ gnue/gnue-common/src/GObjects.py Mon Nov 19 20:45:17 2001
@@ -44,7 +44,8 @@
import GDebug
import string
import types
-from GParser import *
+from GParserHelpers import GContent
+import GTypecast
#
# Class GObj
Index: gnue/gnue-common/src/GParser.py
diff -u gnue/gnue-common/src/GParser.py:1.24
gnue/gnue-common/src/GParser.py:1.25
--- gnue/gnue-common/src/GParser.py:1.24 Sun Nov 18 20:54:43 2001
+++ gnue/gnue-common/src/GParser.py Mon Nov 19 20:45:17 2001
@@ -48,6 +48,7 @@
import string
import GDebug
import GTypecast
+from GParserHelpers import GContent
#######################################################
@@ -278,46 +279,3 @@
GDebug.printMesg(50, "</%s>" % name)
-
-
-#
-# Class GContent
-#
-# Base class for xml content
-#
-class GContent:
-
- def __init__(self, parent, content):
- self._content = content
- if parent :
- parent.addChild(self)
-
- def getEscapedContent(self):
- return saxutils.escape(self._content)
-
- def getContent(self):
- return self._content
-
- def toXML(self):
- return saxutils.escape(self._content)
-
- def dumpXML(self, lookupDict, treeDump=None, gap=None, escape=1):
- if escape:
- return saxutils.escape(self._content)
- else:
- return self._content
-
- def showTree(self, indent=0):
- print ' '*indent + 'GContent ' + `self._content`
-
- def getObjectType(self):
- return "_content_"
-
- #
- # getDescription
- #
- # Return a useful description of this object
- # Used by designer clients
- #
- def getDescription(self):
- return "(Content)"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnue/gnue-common/src GObjects.py GParser.py GPa...,
Jason Cater <=