ajack 2004/03/19 14:06:44
Modified: python/gump/document forrest.py
Log:
Avalon XML descriptor blows the 32Kb limit of a forrest <source>.
Revision Changes Path
1.112 +9 -5 gump/python/gump/document/forrest.py
Index: forrest.py
===================================================================
RCS file: /home/cvs/gump/python/gump/document/forrest.py,v
retrieving revision 1.111
retrieving revision 1.112
diff -u -r1.111 -r1.112
--- forrest.py 19 Mar 2004 18:19:18 -0000 1.111
+++ forrest.py 19 Mar 2004 22:06:43 -0000 1.112
@@ -224,7 +224,7 @@
# let's not shoot so high.
#
success=1
- if 1 or forrestResult.state==CMD_STATE_SUCCESS:
+ if 1 or (forrestResult.state==CMD_STATE_SUCCESS):
try:
#
# Sync over public pages...
@@ -1588,7 +1588,11 @@
except Exception, details:
stream.write('Failed to XML serialize the data. ' + str(details))
stream.seek(0)
- xmlSection.createSource(stream.read())
+ xmldata=stream.read()
+ if len(xmldata) < 32000:
+ xmlSection.createSource(stream.read())
+ else:
+ xmlSection.createParagraph('XML Data too large to display.')
stream.close()
def documentSummary(self,xdocNode,summary,description='Project Summary'):
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]