commit-gnue
[Top][All Lists]
Advanced

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

gnue/common/src GTrigger.py


From: Jason Cater
Subject: gnue/common/src GTrigger.py
Date: Thu, 30 May 2002 23:54:19 -0400

CVSROOT:        /home/cvs
Module name:    gnue
Changes by:     Jason Cater <address@hidden>    02/05/30 23:54:19

Modified files:
        common/src     : GTrigger.py 

Log message:
        added xmlnamespace passthru to GTrigger's dumpXML

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/GTrigger.py.diff?cvsroot=OldCVS&tr1=1.15&tr2=1.16&r1=text&r2=text

Patches:
Index: gnue/common/src/GTrigger.py
diff -c gnue/common/src/GTrigger.py:1.15 gnue/common/src/GTrigger.py:1.16
*** gnue/common/src/GTrigger.py:1.15    Sat May  4 12:45:07 2002
--- gnue/common/src/GTrigger.py Thu May 30 23:54:19 2002
***************
*** 74,80 ****
        self._globalNamespace['form'] = self.constructTriggerObject(objectTree)
      else:
        GDebug.printMesg(0,'GTriggerNamespace was passed an empty object tree')
!       
    #
    # constructTriggerObject
    #
--- 74,80 ----
        self._globalNamespace['form'] = self.constructTriggerObject(objectTree)
      else:
        GDebug.printMesg(0,'GTriggerNamespace was passed an empty object tree')
! 
    #
    # constructTriggerObject
    #
***************
*** 110,116 ****
              if gobjObject._triggerFunctions[item].has_key('global') and \
                 gobjObject._triggerFunctions[item]['global'] != 0:
                self._globalNamespace[item] = object
!                             
            else:
              GDebug.printMesg(0,'Only functions are supported in an objects 
_triggerFunctions %s %s' % (gobjObject,item))
              
--- 110,116 ----
              if gobjObject._triggerFunctions[item].has_key('global') and \
                 gobjObject._triggerFunctions[item]['global'] != 0:
                self._globalNamespace[item] = object
! 
            else:
              GDebug.printMesg(0,'Only functions are supported in an objects 
_triggerFunctions %s %s' % (gobjObject,item))
              
***************
*** 134,140 ****
            # Add this objects children to it's namespace by their name
            if object:
              triggerObject.__dict__[child.name] = object
!             
        #
        # populate the GObj's _localTriggerNamespace
        localNamespace = {'self':triggerObject}
--- 134,140 ----
            # Add this objects children to it's namespace by their name
            if object:
              triggerObject.__dict__[child.name] = object
! 
        #
        # populate the GObj's _localTriggerNamespace
        localNamespace = {'self':triggerObject}
***************
*** 490,498 ****
    # dumpXML
    #
    # Dumps an XML representation of the object
!   # used in saving 
    #
!   def dumpXML(self, lookupDict, treeDump=None, gap=None):
      escape = not int(gConfig('StoreTriggersAsCDATA'))
      xmlEntity = "trigger"
      xmlString = "%s<%s" % (gap[:-2],xmlEntity)
--- 490,498 ----
    # dumpXML
    #
    # Dumps an XML representation of the object
!   # used in saving
    #
!   def dumpXML(self, lookupDict, treeDump=None, gap=None,xmlnamespaces={}):
      escape = not int(gConfig('StoreTriggersAsCDATA'))
      xmlEntity = "trigger"
      xmlString = "%s<%s" % (gap[:-2],xmlEntity)



reply via email to

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