gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject cvs commit: gump/python/gump/document forrest.py
Date Fri, 19 Mar 2004 22:06:44 GMT
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: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Mime
View raw message