[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/gnue-common/src GParser.py
From: |
Jason Cater |
Subject: |
gnue/gnue-common/src GParser.py |
Date: |
Mon, 08 Oct 2001 09:03:57 -0400 |
CVSROOT: /home/cvs
Module name: gnue
Changes by: Jason Cater <address@hidden> 01/10/08 09:03:57
Modified files:
gnue-common/src: GParser.py
Log message:
misc enhancements/cleanup to parser
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-common/src/GParser.py.diff?cvsroot=OldCVS&tr1=1.22&tr2=1.23&r1=text&r2=text
Patches:
Index: gnue/gnue-common/src/GParser.py
diff -u gnue/gnue-common/src/GParser.py:1.22
gnue/gnue-common/src/GParser.py:1.23
--- gnue/gnue-common/src/GParser.py:1.22 Mon Oct 8 08:38:13 2001
+++ gnue/gnue-common/src/GParser.py Mon Oct 8 09:03:57 2001
@@ -56,12 +56,10 @@
# This method loads an object from an XML file and
# returns that object. If initialize is 1 (default),
# then the object is initialized and ready to go.
+# Setting initialize to 0 is useful for a design
+# environment where the object is not actually
+# being used, but simply loaded as a document.
#
-# (initialize=0 is currently not used -- will probably
-# be used in the Forms/Reports Designer package where
-# we will not want the loaded form to connect to
-# databases, etc)
-#
# "attributes" is a dictionary containing extra
# attributes that should be attached to this object.
#
@@ -104,13 +102,7 @@
if initialize:
GDebug.printMesg(10,"Initializing the object tree starting at %s"
%(object))
-
- # TODO: initializeTree is depreciated but left in here for
- # TODO: backwards compatibility.
-# if hasattr(object,'initializeTree'):
-# object.initializeTree()
-# else:
- object.phaseInit()
+ object.phaseInit(dh._phaseInitCount)
return object
@@ -137,7 +129,7 @@
#
# This is for typecasting booleans
#
-# NOTE: This is a redefinition of GTypecast.boolean.
+# NOTE: This is a redefinition of GTypecast.boolean.
# This redefinition will be removed as soon as all
# references to it are changes. You should be using
# GTypecast from now on.
@@ -183,7 +175,7 @@
self.uniqueIDs = {}
self.root = None
self._phaseInitCount = 0
-
+
def getRoot(self):
return self.root
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnue/gnue-common/src GParser.py,
Jason Cater <=