comparison orpg/chat/chatwnd.py @ 132:fe4dc5817d5e alpha

Traipse Alpha 'OpenRPG' {091005-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 (Cleaning up for Beta) Added Bookmarks Fix to Remote Admin Commands Minor fix to text based Server Fix to Pretty Print, from Core Fix to Splitter Nodes not being created Fix to massive amounts of images loading, from Core 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 default_manifest.xml renamed to default_upmana.xml Cleaner clode for saved repositories New TrueDebug Class in orpg_log (See documentation for usage) Mercurial's hgweb folder is ported to upmana **Pretty important update that can help remove thousands of dead children from your gametree. **Children, <forms />, <group_atts />, <horizontal />, <cols />, <rows />, <height />, etc... are all tags now. Check your gametree and look for dead children!! **New Gamtree Recusion method, mapping, and context sensitivity. !!Alpha - Watch out for infinite loops!! Dead Node Children, now that's a O O -v-v- Happy Halloween!
author sirebral
date Thu, 05 Nov 2009 12:15:19 -0600
parents d54e1328dbb1
children 37d26a98883f
comparison
equal deleted inserted replaced
131:90d19eb43830 132:fe4dc5817d5e
1834 1834
1835 1835
1836 def ParseFilter(self, s): 1836 def ParseFilter(self, s):
1837 s = self.GetFilteredText(s) 1837 s = self.GetFilteredText(s)
1838 return s 1838 return s
1839
1840 1839
1841 def ParseNode(self, s): 1840 def ParseNode(self, s):
1842 """Parses player input for embedded nodes rolls""" 1841 """Parses player input for embedded nodes rolls"""
1843 cur_loc = 0 1842 cur_loc = 0
1844 #[a-zA-Z0-9 _\-\.] 1843 #[a-zA-Z0-9 _\-\.]
1956 if node.get('class') == 'textctrl_handler': self.data = str(node.find('text').text) 1955 if node.get('class') == 'textctrl_handler': self.data = str(node.find('text').text)
1957 else: self.data = 'Nodehandler for '+ node.get('class') + ' not done!' or 'No Data!' 1956 else: self.data = 'Nodehandler for '+ node.get('class') + ' not done!' or 'No Data!'
1958 else: 1957 else:
1959 self.data = '' 1958 self.data = ''
1960 pass 1959 pass
1960 self.data = self.ParseMap(self.data, node)
1961
1962 def ParseMap(self, s, node):
1963 """Parses player input for embedded nodes rolls"""
1964 cur_loc = 0
1965 reg = re.compile("(!!(.*?)!!)")
1966 matches = reg.findall(s)
1967 print matches
1968 for i in xrange(0,len(matches)):
1969 newstr = txt = '!@' + node.get('map') + '::' + matches[i][1] + '@!'
1970 s = s.replace(matches[i][0], newstr, 1)
1971 s = self.ParseNode(s)
1972 return s
1961 1973
1962 def resolve_nodes(self, s): 1974 def resolve_nodes(self, s):
1963 self.passed = False 1975 self.passed = False
1964 self.data = 'No Data!' 1976 self.data = 'No Data!'
1965 value = "" 1977 value = ""