Mercurial > traipse_dev
comparison orpg/tools/InterParse.py @ 207:40316be08270 alpha
Traipse Alpha 'OpenRPG' {100428-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 (Patch-2)
Getting Ready for Beta!
New Features:
New Namespace method with two new syntaxes
New Namespace Internal is context sensitive, always!
New Namespace External is 'as narrow as you make it'
New Namespace FutureCheck helps ensure you don't receive an incorrect node
New PluginDB access for URL2Link plugin
New to Forms, they now show their content in Design Mode
New to Update Manager, checks Repo for updates on software start
Fixes:
Fix to Server GUI startup errors
Fix to Server GUI Rooms tab updating
Fix to Chat and Settings if non existant die roller is picked
Fix to Dieroller and .open() used with .vs(). Successes are correctly calculated
Fix to Alias Lib's Export to Tree, Open, Save features
Fix to alias node, now works properly
Fix to Splitter node, minor GUI cleanup
Fix to Backgrounds not loading through remote loader
Fix to Node name errors
Fix to rolling dice in chat Whispers
Fix to Splitters Sizing issues
Fix to URL2Link plugin, modified regex compilation should remove memory leak
Fix to mapy.py, a roll back due to zoomed grid issues
Fix to whiteboard_handler, Circles work by you clicking the center of the circle
Fix to Servers parse_incoming_dom which was outdated and did not respect XML
Fix to a broken link in the server welcome message
Fix to InterParse and logger requiring traceback
Fix to Update Manager Status Bar
Fix to failed image and erroneous pop up
author | sirebral |
---|---|
date | Wed, 28 Apr 2010 01:27:11 -0500 |
parents | a088a1b4aa9b |
children | 9ac90179e8d8 |
comparison
equal
deleted
inserted
replaced
206:ab271cbd05c8 | 207:40316be08270 |
---|---|
134 return node, roots, root_list | 134 return node, roots, root_list |
135 | 135 |
136 def FutureCheck(self, node, next): | 136 def FutureCheck(self, node, next): |
137 future = node.getiterator('nodehandler') | 137 future = node.getiterator('nodehandler') |
138 for advance in future: | 138 for advance in future: |
139 if next == advance.get('name'): return True | 139 print next, advance.get('name') |
140 if next == advance.get('name'): print True; return True | |
140 return False | 141 return False |
141 | 142 |
142 def NameSpaceI(self, s, node): | 143 def NameSpaceI(self, s, node): |
143 reg = re.compile("(!=(.*?)=!)") | 144 reg = re.compile("(!=(.*?)=!)") |
144 matches = reg.findall(s) | 145 matches = reg.findall(s) |
162 newstr = self.NameSpaceGrid(find[x+1], node); break | 163 newstr = self.NameSpaceGrid(find[x+1], node); break |
163 try: | 164 try: |
164 if self.FutureCheck(node, find[x+1]): break | 165 if self.FutureCheck(node, find[x+1]): break |
165 else: continue | 166 else: continue |
166 except: | 167 except: |
167 if x == len(find)-1: newstr = str(node.find('text').text); break | 168 if x == len(find)-1: |
168 else: break | 169 if node.find('text') != None: newstr = str(node.find('text').text) |
170 else: newstr = 'Invalid Reference!' | |
171 break | |
169 if not newstr: newstr = 'Invalid Reference!'; break | 172 if not newstr: newstr = 'Invalid Reference!'; break |
170 s = s.replace(matches[i][0], newstr, 1) | 173 s = s.replace(matches[i][0], newstr, 1) |
171 s = self.ParseLogic(s, node) | 174 s = self.ParseLogic(s, node) |
172 return s | 175 return s |
173 | 176 |
194 newstr = self.NameSpaceGrid(find[x+1], node); break | 197 newstr = self.NameSpaceGrid(find[x+1], node); break |
195 try: | 198 try: |
196 if self.FutureCheck(node, find[x+1]): break | 199 if self.FutureCheck(node, find[x+1]): break |
197 else: continue | 200 else: continue |
198 except: | 201 except: |
199 if x == len(find)-1: newstr = str(node.find('text').text); break | 202 if x == len(find)-1: |
203 if node.find('text') != None: newstr = str(node.find('text').text) | |
204 else: newstr = 'Invalid Reference!' | |
205 break | |
200 else: break | 206 else: break |
201 if not newstr: newstr = 'Invalid Reference!' | 207 if not newstr: newstr = 'Invalid Reference!' |
202 s = s.replace(matches[i][0], newstr, 1) | 208 s = s.replace(matches[i][0], newstr, 1) |
203 s = self.ParseLogic(s, node) | 209 s = self.ParseLogic(s, node) |
204 return s | 210 return s |