[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
r6375 - trunk/gnue-common/src/definitions
From: |
johannes |
Subject: |
r6375 - trunk/gnue-common/src/definitions |
Date: |
Wed, 22 Sep 2004 10:11:18 -0500 (CDT) |
Author: johannes
Date: 2004-09-22 10:11:17 -0500 (Wed, 22 Sep 2004)
New Revision: 6375
Modified:
trunk/gnue-common/src/definitions/GParser.py
Log:
A MarkupError is an ApplicationError
Modified: trunk/gnue-common/src/definitions/GParser.py
===================================================================
--- trunk/gnue-common/src/definitions/GParser.py 2004-09-22 12:50:33 UTC
(rev 6374)
+++ trunk/gnue-common/src/definitions/GParser.py 2004-09-22 15:11:17 UTC
(rev 6375)
@@ -49,7 +49,7 @@
import string
-from gnue.common.apps import GDebug
+from gnue.common.apps import errors
from gnue.common.formatting import GTypecast
from gnue.common.definitions.GParserHelpers import GContent
@@ -58,7 +58,7 @@
#
# Error classed raised for markup errors
#
-class MarkupError(StandardError):
+class MarkupError(errors.ApplicationError):
pass
@@ -133,7 +133,7 @@
object.walk(addAttributesWalker,attributes=attributes)
if initialize:
- GDebug.printMesg(10,"Initializing the object tree starting at %s"
%(object))
+ gDebug (10, "Initializing the object tree starting at %s" %(object))
object.phaseInit(dh._phaseInitCount)
@@ -248,7 +248,7 @@
#
# No namespace qualifier
#
- GDebug.printMesg(50, "<%s>" % name)
+ gDebug (50, "<%s>" % name)
try:
baseAttrs = self.xmlElements[name].get('Attributes',{})
@@ -346,7 +346,7 @@
# namespace qualifier and we are masquerading
#
- GDebug.printMesg(50, "<%s:%s>" % (ns,name))
+ gDebug (50, "<%s:%s>" % (ns,name))
for qattr in saxattrs.keys():
attrns, attr = qattr
@@ -425,7 +425,7 @@
inits = child._buildObject()
self._phaseInitCount = (inits != None and inits > self._phaseInitCount \
and inits or self._phaseInitCount)
- GDebug.printMesg(50, "</%s>" % name)
+ gDebug (50, "</%s>" % name)
class GImportItem(GObj):
@@ -467,7 +467,7 @@
for key in self._loadedxmlattrs.keys():
if key[0] != '_':
rv.__dict__[key] = self._loadedxmlattrs[key]
- GDebug.printMesg (5, ">>> Moving %s" % key)
+ gDebug (5, ">>> Moving %s" % key)
rv._buildObject()
else:
raise MarkupError, u_("Unable to find an importable object named "
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- r6375 - trunk/gnue-common/src/definitions,
johannes <=