comparison orpg/gametree/gametree.py @ 243:3bbfd84619c0 beta

Traipse Beta 'OpenRPG' {101018-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 (Closing/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 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 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 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
author sirebral
date Mon, 18 Oct 2010 23:48:49 -0500
parents 56c1f2729413
children
comparison
equal deleted inserted replaced
242:72e0cce81a47 243:3bbfd84619c0
700 700
701 def load_xml(self, xml_element, parent_node, prev_node=None, drag_drop=False): 701 def load_xml(self, xml_element, parent_node, prev_node=None, drag_drop=False):
702 if parent_node == self.root: 702 if parent_node == self.root:
703 name = xml_element.get('name').replace(u'\xa0', ' ') #Required for XSLT sheets 703 name = xml_element.get('name').replace(u'\xa0', ' ') #Required for XSLT sheets
704 xml_element.set('name', name) 704 xml_element.set('name', name)
705 self.tree_map[xml_element.get('name')] = {} 705 self.tree_map[str(xml_element.get('name'))] = {}
706 self.tree_map[xml_element.get('name')]['node'] = xml_element 706 self.tree_map[str(xml_element.get('name'))]['node'] = xml_element
707 xml_element.set('map', '') 707 xml_element.set('map', '')
708 if parent_node != self.root: 708 if parent_node != self.root:
709 ## Loading XML seems to lag on Grids and Images need a cache for load speed ## 709 ## Loading XML seems to lag on Grids and Images need a cache for load speed ##
710 family_tree = self.get_tree_map(parent_node) 710 family_tree = self.get_tree_map(parent_node)
711 family_tree.reverse() 711 family_tree.reverse()
829 txt = evt.GetLabel() 829 txt = evt.GetLabel()
830 self.was_labeling = 0 830 self.was_labeling = 0
831 self.rename_flag = 0 831 self.rename_flag = 0
832 if txt != "": 832 if txt != "":
833 obj = self.GetPyData(item) 833 obj = self.GetPyData(item)
834 obj.xml_root.set('name',txt) 834 #obj.xml.set('name', txt)
835 obj.rename(txt)
835 else: evt.Veto() 836 else: evt.Veto()
836 837
837 def on_label_begin(self, evt): 838 def on_label_begin(self, evt):
838 if not self.rename_flag: evt.Veto() 839 if not self.rename_flag: evt.Veto()
839 else: 840 else: