[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
r5664 - trunk/gnue-common/src/logic
From: |
reinhard |
Subject: |
r5664 - trunk/gnue-common/src/logic |
Date: |
Wed, 7 Apr 2004 05:01:41 -0500 (CDT) |
Author: reinhard
Date: 2004-04-07 05:01:40 -0500 (Wed, 07 Apr 2004)
New Revision: 5664
Modified:
trunk/gnue-common/src/logic/GTrigger.py
Log:
Add type to the name of the trigger. This makes sure that even unnamed triggers
have some kind of name.
Modified: trunk/gnue-common/src/logic/GTrigger.py
===================================================================
--- trunk/gnue-common/src/logic/GTrigger.py 2004-04-07 09:51:56 UTC (rev
5663)
+++ trunk/gnue-common/src/logic/GTrigger.py 2004-04-07 10:01:40 UTC (rev
5664)
@@ -139,12 +139,15 @@
path=""
p = self
delim = ""
- while p!=None:
- if hasattr(p,'name'):
- #print p.name
- if p.name!=None:
- path=p.name+delim+path
+ while p:
+ if hasattr (p, 'name'):
+ if p.name:
+ path = p.name + delim + path
delim = "_"
+ if hasattr (p, 'type'):
+ if p.type:
+ path = p.type + delim + path
+ delim = "_"
if p._triggerGlobal == 1:
p=None
else:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- r5664 - trunk/gnue-common/src/logic,
reinhard <=