Mercurial > traipse_dev
comparison orpg/tools/InterParse.py @ 245:682032381be8 beta
Traipse Beta 'OpenRPG' {101130-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
Fix to aliaslib, prevents error caused when SafeHTML is sent None
author | sirebral |
---|---|
date | Tue, 30 Nov 2010 02:34:58 -0600 |
parents | 3bbfd84619c0 |
children |
comparison
equal
deleted
inserted
replaced
244:be04d07341f3 | 245:682032381be8 |
---|---|
42 if not tab: tab = component.get('chat') | 42 if not tab: tab = component.get('chat') |
43 s = self.Normalize(s, tab) | 43 s = self.Normalize(s, tab) |
44 tab.set_colors() | 44 tab.set_colors() |
45 tab.Post(s, send, myself) | 45 tab.Post(s, send, myself) |
46 | 46 |
47 def ParseLogic(self, s, node): | 47 def ParseLogic(self, s, node=None): |
48 'Nodes now parse through ParsLogic. Easily add new parse rules right here!!' | 48 'Nodes now parse through ParsLogic. Easily add new parse rules right here!!' |
49 s = self.NameSpaceE(s) | 49 if not node: s = self.NameSpaceE(s) |
50 s = self.NameSpaceI(s, node) | 50 s = self.NameSpaceI(s, node) |
51 #s = self.NodeMap(s, node) | 51 #s = self.NodeMap(s, node) |
52 #s = self.NodeParent(s, node) | 52 #s = self.NodeParent(s, node) |
53 return s | 53 return s |
54 | 54 |
169 try: tree_map = node.get('map') | 169 try: tree_map = node.get('map') |
170 except: return node | 170 except: return node |
171 for i in xrange(0,len(matches)): | 171 for i in xrange(0,len(matches)): |
172 ## Build the new tree_map | 172 ## Build the new tree_map |
173 new_map = tree_map.split('::') | 173 new_map = tree_map.split('::') |
174 if new_map == ['']: new_map = [node.get('name')] | |
174 find = matches[i][1].split('::') | 175 find = matches[i][1].split('::') |
175 ## Backwards Reference the Parent Children | 176 ## Backwards Reference the Parent Children |
176 node = self.get_node(new_map) | 177 node = self.get_node(new_map) |
177 newstr = self.LocationCheck(node, tree_map, new_map, find) | 178 newstr = self.LocationCheck(node, tree_map, new_map, find) |
178 s = s.replace(matches[i][0], newstr, 1) | 179 s = s.replace(matches[i][0], newstr, 1) |
179 s = s.replace(u'\xa0', ' ') | 180 s = s.replace(u'\xa0', ' ') |
180 #s = self.NodeMap(s, node) | 181 s = self.NameSpaceI(s, node) |
181 #s = self.NodeParent(s, node) | |
182 return s | 182 return s |
183 | 183 |
184 def NameSpaceXE(self, s): | 184 def NameSpaceXE(self, s): |
185 reg = re.compile("(!&(.*?)&!)") | 185 reg = re.compile("(!&(.*?)&!)") |
186 matches = reg.findall(s) | 186 matches = reg.findall(s) |