[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/common doc/TriggerSpecifications.txt src/G...
From: |
James Thompson |
Subject: |
gnue/common doc/TriggerSpecifications.txt src/G... |
Date: |
Wed, 23 Jan 2002 23:30:41 -0500 |
CVSROOT: /cvsroot/gnue
Module name: gnue
Changes by: James Thompson <address@hidden> 02/01/23 23:30:41
Modified files:
common/doc : TriggerSpecifications.txt
common/src : GObjects.py
Added files:
common/src : GTrigger.py
Log message:
The start of a generic trigger system for common
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/common/doc/TriggerSpecifications.txt.diff?tr1=1.11&tr2=1.12&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/common/src/GTrigger.py?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/common/src/GObjects.py.diff?tr1=1.22&tr2=1.23&r1=text&r2=text
Patches:
Index: gnue/common/doc/TriggerSpecifications.txt
diff -c gnue/common/doc/TriggerSpecifications.txt:1.11
gnue/common/doc/TriggerSpecifications.txt:1.12
*** gnue/common/doc/TriggerSpecifications.txt:1.11 Wed Jan 23 20:52:43 2002
--- gnue/common/doc/TriggerSpecifications.txt Wed Jan 23 23:30:40 2002
***************
*** 326,331 ****
--- 326,334 ----
fired against it.
+ If a namespace conflict occurs then the local one wins out
+
+
GObj extensions
_triggerGlobal : Always put this object in the global trigger namespace by
it's name
***************
*** 333,338 ****
--- 336,343 ----
it's children up to look as if they are assigned to
this object's
parent in the trigger namespace.
+ _triggerNamespace : the local trigger namespace
+ _triggerProperties : internal hooks into the GObj
END: Custom namespace construction system
Index: gnue/common/src/GObjects.py
diff -c gnue/common/src/GObjects.py:1.22 gnue/common/src/GObjects.py:1.23
*** gnue/common/src/GObjects.py:1.22 Mon Nov 19 20:45:17 2001
--- gnue/common/src/GObjects.py Wed Jan 23 23:30:40 2002
***************
*** 62,87 ****
if parent :
parent.addChild(self)
! #
! # initialize
! #
! # This will be the base of the new initialization system for gnue
! # each childs initialization function must call GObj.initialize()
! #
! #def initialize(self):
! # GDebug.printMesg(6,"Initializing %s" % self.getObjectType())
! # if self._children:
! # for child in self._children:
! # if isinstance(child, GObj):
! # child.initialize()
!
#
# phaseInit
#
def phaseInit(self, iterations=5):
for phase in range(iterations):
self._phaseInit(phase)
- # phase = phase + 1
def _phaseInit(self,phase):
if (len(self._inits) > phase) and (self._inits[phase] != None):
--- 62,79 ----
if parent :
parent.addChild(self)
! # Trigger namespace extensions
! self._triggerGlobal = 0
! self._triggerTransparent = 0
! self._triggerNamespace = {}
! self._triggerProperties = {}
!
#
# phaseInit
#
def phaseInit(self, iterations=5):
for phase in range(iterations):
self._phaseInit(phase)
def _phaseInit(self,phase):
if (len(self._inits) > phase) and (self._inits[phase] != None):
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnue/common doc/TriggerSpecifications.txt src/G...,
James Thompson <=