commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue/common/src/definitions GObjects.py


From: Jason Cater
Subject: gnue/common/src/definitions GObjects.py
Date: Thu, 01 May 2003 12:21:37 -0400

CVSROOT:        /cvsroot/gnue
Module name:    gnue
Changes by:     Jason Cater <address@hidden>    03/05/01 12:21:37

Modified files:
        common/src/definitions: GObjects.py 

Log message:
        fixes for binary content support

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/common/src/definitions/GObjects.py.diff?tr1=1.58&tr2=1.59&r1=text&r2=text

Patches:
Index: gnue/common/src/definitions/GObjects.py
diff -c gnue/common/src/definitions/GObjects.py:1.58 
gnue/common/src/definitions/GObjects.py:1.59
*** gnue/common/src/definitions/GObjects.py:1.58        Thu Apr 10 02:12:22 2003
--- gnue/common/src/definitions/GObjects.py     Thu May  1 12:21:37 2003
***************
*** 40,46 ****
  #
  # Class GObj
  #
! # Base class for GNUe objects which 
  # can be represented by XML tags
  #
  class GObj(GTriggerCore, ParserObj):
--- 40,46 ----
  #
  # Class GObj
  #
! # Base class for GNUe objects which
  # can be represented by XML tags
  #
  class GObj(GTriggerCore, ParserObj):
***************
*** 48,54 ****
      GTriggerCore.__init__(self)
      ParserObj.__init__(self, *args, **parms)
  
!     
    # This is a convenience function for applications
    # NOT using GParser to load an object tree.
    def buildObject(self, **params):
--- 48,54 ----
      GTriggerCore.__init__(self)
      ParserObj.__init__(self, *args, **parms)
  
! 
    # This is a convenience function for applications
    # NOT using GParser to load an object tree.
    def buildObject(self, **params):
***************
*** 141,146 ****
--- 141,148 ----
      for child in self._children:
        if isinstance(child, GContent):
          content += child._content
+       elif isinstance(child, GBinary):
+         content += child.__data__
      return content
  
    def showTree(self, indent=0):
***************
*** 436,439 ****
    def getClass(self): 
      raise "Virtual method not implemented"
      
!     
--- 438,443 ----
    def getClass(self): 
      raise "Virtual method not implemented"
      
! 
! # This is down here to avoid recursive importing
! from gnue.common.definitions.GBinary import GBinary




reply via email to

[Prev in Thread] Current Thread [Next in Thread]