comparison orpg/mapper/whiteboard_msg.py @ 19:78407d627cba traipse_dev

Beginning of Code Clean-up. Some code untested, may break!
author sirebral
date Sat, 25 Jul 2009 17:24:40 -0500
parents 4385a7d0efd1
children 072ffc1d466f
comparison
equal deleted inserted replaced
18:67b900deb35c 19:78407d627cba
101 elif action == "update": 101 elif action == "update":
102 if self.children.has_key(id): 102 if self.children.has_key(id):
103 self.children[id].init_props(item.get_all_props()) 103 self.children[id].init_props(item.get_all_props())
104 else: 104 else:
105 self.p_lock.release() 105 self.p_lock.release()
106 raise Exception, "Error attempting to initialize a " + self.tagname + " from a non-<" + self.tagname + "/> element in whiteboard" 106 raise Exception,
107 "Error attempting to initialize a " + self.tagname + " from a non-<" + self.tagname + "/> element in whiteboard"
107 self.p_lock.release() 108 self.p_lock.release()
108 109
109 def set_from_dom(self,xml_dom): 110 def set_from_dom(self,xml_dom):
110 self.p_lock.acquire() 111 self.p_lock.acquire()
111 if xml_dom.tagName == self.tagname: 112 if xml_dom.tagName == self.tagname: