comparison upmana/updatemana.py @ 231:cc7629ab526d alpha

Traipse Alpha 'OpenRPG' {100614-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 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.
author sirebral
date Mon, 14 Jun 2010 15:20:08 -0500
parents cd4ac7e46d3c
children
comparison
equal deleted inserted replaced
230:2e2281ed40a9 231:cc7629ab526d
158 158
159 def LoadDoc(self): 159 def LoadDoc(self):
160 manifest = open(self.filename) 160 manifest = open(self.filename)
161 self.ignorelist = [] 161 self.ignorelist = []
162 ignore = manifest.readlines() 162 ignore = manifest.readlines()
163 for i in ignore: print i; self.ignorelist.append(str(i[:len(i)-1])) 163 for i in ignore: self.ignorelist.append(str(i[:len(i)-1]))
164 manifest.close() 164 manifest.close()
165 165
166 def Finish(self, evt=None): 166 def Finish(self, evt=None):
167 component.get('upmana-win').OnClose(None) 167 component.get('upmana-win').OnClose(None)
168 168
192 self.id = 1 192 self.id = 1
193 193
194 for t in types: 194 for t in types:
195 self.btnName = str(t) 195 self.btnName = str(t)
196 self.btn[self.id] = wx.RadioButton(dlg, wx.ID_ANY, str(t), name=self.btnName) 196 self.btn[self.id] = wx.RadioButton(dlg, wx.ID_ANY, str(t), name=self.btnName)
197 if self.btnName == self.current: self.btn[self.id].SetValue(True) 197 if self.btnName == self.current: self.btn[self.id].SetValue(True); self.current_id = self.id
198 self.btnlist[self.id] = self.btnName 198 self.btnlist[self.id] = self.btnName
199 dlgsizer.Add(self.btn[self.id], (row, col)) 199 dlgsizer.Add(self.btn[self.id], (row, col))
200 col += 1; self.id += 1 200 col += 1; self.id += 1
201 if col == 3: row += 1; col = 0 201 if col == 3: row += 1; col = 0
202 202
210 dlg.Bind(wx.EVT_RADIOBUTTON, self.PackageSet) 210 dlg.Bind(wx.EVT_RADIOBUTTON, self.PackageSet)
211 if dlg.ShowModal(): dlg.Destroy() 211 if dlg.ShowModal(): dlg.Destroy()
212 212
213 def PackageSet(self, event): 213 def PackageSet(self, event):
214 for btn in self.btn: 214 for btn in self.btn:
215 if self.btn[btn].GetValue() == True: self.current = self.btnlist[btn] 215 if self.btn[btn].GetValue() == True:
216 if self.btnlist[btn] == 'pious-paladin':
217 try: from PyQt4 import QtCore
218 except:
219 error = "'Pious Paladin' requires PyQt 4.6. For stability you will not be able to update."
220 dlg = wx.MessageDialog(None, error, 'Failed PyQt Test', wx.OK | wx.ICON_ERROR)
221 dlg.ShowModal()
222 self.btn[self.current_id].SetValue(True)
223 self.current = self.btnlist[self.current_id]
224 else: self.current = self.btnlist[btn]
216 225
217 branches = self.repo.branchtags() 226 branches = self.repo.branchtags()
218 heads = dict.fromkeys(self.repo.heads(), 1) 227 heads = dict.fromkeys(self.repo.heads(), 1)
219 l = [((n in heads), self.repo.changelog.rev(n), n, t) for t, n in branches.items()] 228 l = [((n in heads), self.repo.changelog.rev(n), n, t) for t, n in branches.items()]
220 229
620 629
621 def LoadDoc(self): 630 def LoadDoc(self):
622 manifest = open(self.filename) 631 manifest = open(self.filename)
623 self.ignorelist = [] 632 self.ignorelist = []
624 ignore = manifest.readlines() 633 ignore = manifest.readlines()
625 for i in ignore: print i; self.ignorelist.append(str(i[:len(i)-1])) 634 for i in ignore: self.ignorelist.append(str(i[:len(i)-1]))
626 manifest.close() 635 manifest.close()
627 636
628 def get_packages(self, type=None): 637 def get_packages(self, type=None):
629 #Can be cleaner 638 #Can be cleaner
630 self.package_list = [] 639 self.package_list = []
816 825
817 def LoadDoc(self): 826 def LoadDoc(self):
818 manifest = open(self.filename) 827 manifest = open(self.filename)
819 self.ignorelist = [] 828 self.ignorelist = []
820 ignore = manifest.readlines() 829 ignore = manifest.readlines()
821 for i in ignore: print i; self.ignorelist.append(str(i[:len(i)-1])) 830 for i in ignore: self.ignorelist.append(str(i[:len(i)-1]))
822 manifest.close() 831 manifest.close()
823 832
824 def OnExit(self): 833 def OnExit(self):
825 imported = ['manifest', 'orpg.dirpath', 'orpg.orpgCore', 'orpg.orpg_version', 834 imported = ['manifest', 'orpg.dirpath', 'orpg.orpgCore', 'orpg.orpg_version',
826 'orpg.tools.orpg_log', 'orpg.tools.orpg_log', 'orpg.orpg_xml', 'orpg.dirpath', 835 'orpg.tools.orpg_log', 'orpg.tools.orpg_log', 'orpg.orpg_xml', 'orpg.dirpath',