Update of /cvsroot/openrpg/openrpg1/orpg/chat
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv436/orpg/chat
Modified Files:
chatwnd.py
Log Message:
Fixed so that in node refrencing you only need the primary parent node listed first instead of the FULL path or just node name
eg
For the following Tree;
Root
----CharSheet
--------Stuff
------------MoreStuff
----------------Goal
All of these will work
!@Goal@!
!@CharSheet::Goal@!
!@CharSheet::Stuff::MoreStuff::Goal@!
Index: chatwnd.py
===================================================================
RCS file: /cvsroot/openrpg/openrpg1/orpg/chat/chatwnd.py,v
retrieving revision 1.168
retrieving revision 1.169
diff -C2 -d -r1.168 -r1.169
*** chatwnd.py 19 Apr 2007 02:51:45 -0000 1.168
--- chatwnd.py 21 Apr 2007 22:54:18 -0000 1.169
***************
*** 2453,2461 ****
if not found:
for nodeName in node_path_list:
! (found, node) = self.resolve_loop(dom, nodeName, True)
if not found:
break
dom = node.getChildren()
if found:
--- 2453,2464 ----
if not found:
+ dom = gametree.master_dom.getChildren()
+ loop = False
for nodeName in node_path_list:
! (found, node) = self.resolve_loop(dom, nodeName, loop)
if not found:
break
dom = node.getChildren()
+ loop = True
if found:
|