[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/common/src GObjects.py
From: |
Jason Cater |
Subject: |
gnue/common/src GObjects.py |
Date: |
Mon, 25 Mar 2002 23:34:20 -0500 |
CVSROOT: /home/cvs
Module name: gnue
Changes by: Jason Cater <address@hidden> 02/03/25 23:34:20
Modified files:
common/src : GObjects.py
Log message:
misc fixes for reports
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/GObjects.py.diff?cvsroot=OldCVS&tr1=1.28&tr2=1.29&r1=text&r2=text
Patches:
Index: gnue/common/src/GObjects.py
diff -c gnue/common/src/GObjects.py:1.28 gnue/common/src/GObjects.py:1.29
*** gnue/common/src/GObjects.py:1.28 Mon Mar 25 23:19:46 2002
--- gnue/common/src/GObjects.py Mon Mar 25 23:34:20 2002
***************
*** 214,221 ****
# Moves upward though the parents of an object till
# it finds the parent of the specified type
#
! def findParentOfType(self,type):
! parentObject = self
while (parentObject._parent != None and parentObject._type != type):
parentObject = parentObject._parent
--- 214,228 ----
# Moves upward though the parents of an object till
# it finds the parent of the specified type
#
! def findParentOfType(self,type, includeSelf=1):
!
! if includeSelf:
! parentObject = self
! else:
! parentObject = self._parent
! if parentObject is None:
! return None
!
while (parentObject._parent != None and parentObject._type != type):
parentObject = parentObject._parent
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnue/common/src GObjects.py,
Jason Cater <=