comparison orpg/gametree/nodehandlers/forms.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 72e0cce81a47
children
comparison
equal deleted inserted replaced
242:72e0cce81a47 243:3bbfd84619c0
147 def on_text(self,evt): 147 def on_text(self,evt):
148 id = evt.GetId() 148 id = evt.GetId()
149 txt = self.text[id].GetValue() 149 txt = self.text[id].GetValue()
150 if not len(txt): return 150 if not len(txt): return
151 if id == P_TITLE: 151 if id == P_TITLE:
152 self.handler.xml.set('name',txt) 152 #self.handler.xml.set('name',txt)
153 self.handler.rename(txt) 153 self.handler.rename(txt)
154 elif id == F_HEIGHT or id == F_WIDTH: 154 elif id == F_HEIGHT or id == F_WIDTH:
155 try: int(txt) 155 try: int(txt)
156 except: return 0 156 except: return 0
157 if id == F_HEIGHT: self.handler.xml.set("height",txt) 157 if id == F_HEIGHT: self.handler.xml.set("height",txt)
420 def on_text(self,evt): 420 def on_text(self,evt):
421 id = evt.GetId() 421 id = evt.GetId()
422 if id == P_TITLE: 422 if id == P_TITLE:
423 txt = self.title.GetValue() 423 txt = self.title.GetValue()
424 if not len(txt): return 424 if not len(txt): return
425 self.handler.xml.set('name',txt) 425 #self.handler.xml.set('name',txt)
426 self.handler.rename(txt) 426 self.handler.rename(txt)
427 if id == F_TEXT: 427 if id == F_TEXT:
428 txt = self.text.GetValue() 428 txt = self.text.GetValue()
429 #txt = strip_text(txt) ##Does not seem to exist. 429 #txt = strip_text(txt) ##Does not seem to exist.
430 self.handler.text_elem.text = txt 430 self.handler.text_elem.text = txt
925 def on_text(self,evt): 925 def on_text(self,evt):
926 id = evt.GetId() 926 id = evt.GetId()
927 txt = self.text.GetValue() 927 txt = self.text.GetValue()
928 if not len(txt): return 928 if not len(txt): return
929 if id == P_TITLE: 929 if id == P_TITLE:
930 self.handler.xml.set('name',txt) 930 #self.handler.xml.set('name',txt)
931 self.handler.rename(txt) 931 self.handler.rename(txt)
932 932
933 def on_send_button(self,evt): 933 def on_send_button(self,evt):
934 self.handler.list.set("send_button", str( bool2int(evt.Checked()) )) 934 self.handler.list.set("send_button", str( bool2int(evt.Checked()) ))
935 935
1002 def on_text(self,evt): 1002 def on_text(self,evt):
1003 id = evt.GetId() 1003 id = evt.GetId()
1004 txt = self.text[id].GetValue() 1004 txt = self.text[id].GetValue()
1005 if not len(txt): return 1005 if not len(txt): return
1006 if id == P_TITLE: 1006 if id == P_TITLE:
1007 self.handler.xml.set('name',txt) 1007 #self.handler.xml.set('name',txt)
1008 self.handler.rename(txt) 1008 self.handler.rename(txt)
1009 elif id == P_URL: self.handler.link.set('href',txt) 1009 elif id == P_URL: self.handler.link.set('href',txt)
1010 1010
1011 ########################## 1011 ##########################
1012 ## webimg node handler 1012 ## webimg node handler