comparison orpg/mapper/map_msg.py @ 137:54446a995007 alpha

Traipse Alpha 'OpenRPG' {091018-00} Traipse is a distribution of OpenRPG that is designed to be easy to setup and go. Traipse also makes it easy for developers to work on code without fear of sacrifice. 'Ornery-Orc' continues the trend of 'Grumpy' and adds fixes to the code. 'Ornery-Orc's main goal is to offer more advanced features and enhance the productivity of the user. Update Summary (Cleaning up for Beta) Added Bookmarks Fix to Remote Admin Commands Minor fix to text based Server Fix to Pretty Print, from Core Fix to Splitter Nodes not being created Fix to massive amounts of images loading, from Core Added 'boot' command to remote admin Added confirmation window for sent nodes Minor changes to allow for portability to an OpenSUSE linux OS Miniatures Layer pop up box allows users to turn off Mini labels, from FlexiRPG Zoom Mouse plugin added Images added to Plugin UI Switching to Element Tree Map efficiency, from FlexiRPG Added Status Bar to Update Manager default_manifest.xml renamed to default_upmana.xml Cleaner clode for saved repositories New TrueDebug Class in orpg_log (See documentation for usage) Mercurial's hgweb folder is ported to upmana **Pretty important update that can help remove thousands of dead children from your gametree. **Children, <forms />, <group_atts />, <horizontal />, <cols />, <rows />, <height />, etc... are all tags now. Check your gametree and look for dead children!! **New Gametree Recusion method, mapping, and context sensitivity. !!Alpha - Watch out for infinite loops!!
author sirebral
date Wed, 18 Nov 2009 19:57:52 -0600
parents 37d26a98883f
children 8e07c1a2c69b
comparison
equal deleted inserted replaced
136:b4e02e8cd314 137:54446a995007
62 crash_report.close() 62 crash_report.close()
63 63
64 class map_msg(map_element_msg_base): 64 class map_msg(map_element_msg_base):
65 65
66 def __init__(self,reentrant_lock_object = None): 66 def __init__(self,reentrant_lock_object = None):
67 print 'class map_msg'
68 self.tagname = "map" 67 self.tagname = "map"
69 map_element_msg_base.__init__(self, reentrant_lock_object) 68 map_element_msg_base.__init__(self, reentrant_lock_object)
70 69
71 def init_from_dom(self, xml_dom): 70 def init_from_dom(self, xml_dom):
72 print 'init_from_dom', self.tagname
73 self.p_lock.acquire() 71 self.p_lock.acquire()
74 if xml_dom.tag == self.tagname: 72 if xml_dom.tag == self.tagname:
75 # If this is a map message, look for the "action=new" 73 # If this is a map message, look for the "action=new"
76 # Notice we only do this when the root is a map tag 74 # Notice we only do this when the root is a map tag
77 if self.tagname == "map" and xml_dom.get("action") == "new": 75 if self.tagname == "map" and xml_dom.get("action") == "new":
99 self.p_lock.release() 97 self.p_lock.release()
100 raise Exception, "Error attempting to initialize a " + self.tagname + " from a non-<" + self.tagname + "/> element" 98 raise Exception, "Error attempting to initialize a " + self.tagname + " from a non-<" + self.tagname + "/> element"
101 self.p_lock.release() 99 self.p_lock.release()
102 100
103 def set_from_dom(self,xml_dom): 101 def set_from_dom(self,xml_dom):
104 print 'set_from_dom'
105 self.p_lock.acquire() 102 self.p_lock.acquire()
106 if xml_dom.tag == self.tagname: 103 if xml_dom.tag == self.tagname:
107 # If this is a map message, look for the "action=new" 104 # If this is a map message, look for the "action=new"
108 # Notice we only do this when the root is a map tag 105 # Notice we only do this when the root is a map tag
109 if self.tagname == "map" and xml_dom.get("action") == "new": 106 if self.tagname == "map" and xml_dom.get("action") == "new":