comparison orpg/mapper/whiteboard_msg.py @ 36:d02e9197c066 ornery-orc

Traipse 'OpenRPG' {101220-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 (Closed) New Features: New to Map, can re-order Grid, Miniatures, and Whiteboard layer draw order New to Server GUI, can now clear log New Earthdawn Dieroller New IronClaw roller, sheet, and image New ShapeShifter PC Sheet Updates: Update to Warhammer PC Sheet. Rollers set as macros. Should work with little maintanence. Update to Browser Server window. Display rooms with ' " & cleaner Update to Server. Handles ' " & cleaner Update to Dieroller. Cleaner, more effecient expression system Update to Hidden Die plugin, allows for non standard dice rolls Update to location.py, allows for more portable references when starting Traipse Update to the Features node Fixes: Fix to InterParse that was causing an Infernal Loop with Namespace Internal Fix to XML data, removed old Minidom and switched to Element Tree Fix to Server that was causing eternal attempt to find a Server ID, in Register Rooms thread Fix to Server, removing wxPython dependencies where not needed Fix to metaservers.xml file not being created Fix to Single and Double quotes in Whiteboard text Fix to Background images not showing when using the Image Server Fix to Duplicate chat names appearing Fix to Server GUI's logging output Fix to FNB.COLORFUL_TABS bug Fix to Gametree for XSLT Sheets Fix to Gametree for locating gametree files Fix to Send to Chat from Gametree Fix to Gametree, renaming and remapping operates correctly Fix to aliaslib, prevents error caused when SafeHTML is sent None
author sirebral
date Sun, 19 Dec 2010 22:44:36 -0600
parents ff154cf3350c
children
comparison
equal deleted inserted replaced
35:ee890f424e16 36:d02e9197c066
78 self.tagname = "whiteboard" 78 self.tagname = "whiteboard"
79 map_element_msg_base.__init__(self,reentrant_lock_object) 79 map_element_msg_base.__init__(self,reentrant_lock_object)
80 80
81 def init_from_dom(self,xml_dom): 81 def init_from_dom(self,xml_dom):
82 self.p_lock.acquire() 82 self.p_lock.acquire()
83 if xml_dom.tagName == self.tagname: 83 if xml_dom.tag == self.tagname:
84 if xml_dom.getAttributeKeys(): 84 if xml_dom.keys():
85 for k in xml_dom.getAttributeKeys(): self.init_prop(k,xml_dom.getAttribute(k)) 85 for k in xml_dom.keys(): self.init_prop(k,xml_dom.get(k))
86 for c in xml_dom._get_childNodes(): 86 for c in xml_dom.getchildren():
87 item = item_msg(self.p_lock,c._get_nodeName()) 87 item = item_msg(self.p_lock,c.tag)
88 try: item.init_from_dom(c) 88 try: item.init_from_dom(c)
89 except Exception, e: 89 except Exception, e:
90 print e 90 print e
91 continue 91 continue
92 id = item.get_prop("id") 92 id = item.get_prop("id")
103 raise Exception, "Error attempting to initialize a " + self.tagname + " from a non-<" + self.tagname + "/> element in whiteboard" 103 raise Exception, "Error attempting to initialize a " + self.tagname + " from a non-<" + self.tagname + "/> element in whiteboard"
104 self.p_lock.release() 104 self.p_lock.release()
105 105
106 def set_from_dom(self,xml_dom): 106 def set_from_dom(self,xml_dom):
107 self.p_lock.acquire() 107 self.p_lock.acquire()
108 if xml_dom.tagName == self.tagname: 108 if xml_dom.tag == self.tagname:
109 if xml_dom.getAttributeKeys(): 109 if xml_dom.keys():
110 for k in xml_dom.getAttributeKeys(): self.set_prop(k,xml_dom.getAttribute(k)) 110 for k in xml_dom.keys(): self.set_prop(k,xml_dom.get(k))
111 for c in xml_dom._get_childNodes(): 111 for c in xml_dom.getchildren():
112 item = item_msg(self.p_lock, c._get_nodeName()) 112 item = item_msg(self.p_lock, c.tag)
113 try: item.set_from_dom(c) 113 try: item.set_from_dom(c)
114 except Exception, e: 114 except Exception, e:
115 print e 115 print e
116 continue 116 continue
117 id = item.get_prop("id") 117 id = item.get_prop("id")