comparison orpg/chat/chatwnd.py @ 173:0dde29a41614 alpha

Traipse Alpha 'OpenRPG' {100107-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 (Keeping up with Beta) New Features: Added Bookmarks Added 'boot' command to remote admin Added confirmation window for sent nodes Minor changes to allow for portability to an OpenSUSE linux OS Miniatures Layer pop up box allows users to turn off Mini labels, from FlexiRPG Zoom Mouse plugin added Images added to Plugin UI Switching to Element Tree Map efficiency, from FlexiRPG Added Status Bar to Update Manager New TrueDebug Class in orpg_log (See documentation for usage) Portable Mercurial Tip of the Day added, from Core and community New Reference Syntax added for custom PC sheets New Child Reference for gametree New Parent Reference for gametree New Gametree Recursion method, mapping, context sensitivity, and effeciency.. New Features node with bonus nodes and Node Referencing help added Dieroller structure from Core Added 7th Sea die roller method; ie [7k3] = [7d10.takeHighest(3).open(10)] New 'Mythos' System die roller added Added new vs. die roller method for WoD; ie [3v3] = [3d10.vs(3)]. Includes support for Mythos roller New EZ_Tree Reference system. Push a button, Traipse the tree, get a reference (Alpha!!) Fixes: Fix to Text based Server Fix to Remote Admin Commands Fix to Pretty Print, from Core Fix to Splitter Nodes not being created Fix to massive amounts of images loading, from Core Fix to Map from gametree not showing to all clients Fix to gametree about menus Fix to Password Manager check on startup Fix to PC Sheets from tool nodes. They now use the tabber_panel Fixed Whiteboard ID to prevent random line or text deleting. Modified ID's to prevent non updated clients from ruining the fix. default_manifest.xml renamed to default_upmana.xml Fix to Update Manager; cleaner clode for saved repositories Fixes made to Settings Panel and no reactive settings when Ok is pressed Fixes to Alternity roller's attack roll. Uses a simple Tuple instead of a Splice Fix to Use panel of Forms and Tabbers. Now longer enters design mode
author sirebral
date Thu, 07 Jan 2010 01:53:12 -0600
parents 5c9a118476b2
children ff6cbd2b7620
comparison
equal deleted inserted replaced
170:b7206781c254 173:0dde29a41614
1969 return 1969 return
1970 1970
1971 def resolution(self, node): 1971 def resolution(self, node):
1972 if self.passed == False: 1972 if self.passed == False:
1973 self.passed = True 1973 self.passed = True
1974 if node.get('class') == 'textctrl_handler': self.data = str(node.find('text').text) 1974 if node.get('class') == 'textctrl_handler': s = str(node.find('text').text)
1975 else: self.data = 'Nodehandler for '+ node.get('class') + ' not done!' or 'Invalid Reference!' 1975 else: self.data = 'Nodehandler for '+ node.get('class') + ' not done!' or 'Invalid Reference!'
1976 else: 1976 else:
1977 self.data = '' 1977 self.data = ''
1978 pass 1978 pass
1979 self.data = self.ParseMap(self.data, node) 1979 self.data = self.ParseMap(s, node)
1980 1980
1981 def ParseMap(self, s, node): 1981 def ParseMap(self, s, node):
1982 """Parses player input for embedded nodes rolls""" 1982 """Parses player input for embedded nodes rolls"""
1983 cur_loc = 0 1983 cur_loc = 0
1984 reg = re.compile("(!!(.*?)!!)") 1984 reg = re.compile("(!!(.*?)!!)")
2016 self.passed = False 2016 self.passed = False
2017 self.data = 'Invalid Reference!' 2017 self.data = 'Invalid Reference!'
2018 value = "" 2018 value = ""
2019 path = s.split('::') 2019 path = s.split('::')
2020 depth = len(path) 2020 depth = len(path)
2021 self.gametree = component.get('tree') 2021 self.gametree = component.get('tree_back')
2022 try: node = self.gametree.tree_map[path[0]]['node'] 2022 try: node = self.gametree.tree_map[path[0]]['node']
2023 except: return self.data 2023 except Exception, e: return self.data
2024 if node.get('class') in ('dnd35char_handler', "SWd20char_handler", "d20char_handler", "dnd3echar_handler"): self.resolve_cust_loop(node, path, 1, depth) 2024 if node.get('class') in ('dnd35char_handler', "SWd20char_handler", "d20char_handler", "dnd3echar_handler"): self.resolve_cust_loop(node, path, 1, depth)
2025 elif node.get('class') == 'rpg_grid_handler': self.resolve_grid(node, path, 1, depth) 2025 elif node.get('class') == 'rpg_grid_handler': self.resolve_grid(node, path, 1, depth)
2026 else: self.resolve_loop(node, path, 1, depth) 2026 else: self.resolve_loop(node, path, 1, depth)
2027 return self.data 2027 return self.data