comparison upmana/updatemana.py @ 142:2345c12d93a7 beta

Traipse Beta 'OpenRPG' {091123-01} 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 (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 Gametree Recursion method, mapping, and context sensitivity. !Infinite Loops return error instead of freezing the software! New Syntax added for custom PC sheets Tip of the Day added, from Core and community Fixed Whiteboard ID to prevent random line or text deleting. Modified ID's to prevent non updated clients from ruining the fix.
author sirebral
date Mon, 23 Nov 2009 12:20:51 -0600
parents dcf4fbe09b70
children 6c5f46a5924b
comparison
equal deleted inserted replaced
140:e842a5f1b775 142:2345c12d93a7
13 class Term2Win(object): 13 class Term2Win(object):
14 # A stdout redirector. Allows the messages from Mercurial to be seen in the Install Window 14 # A stdout redirector. Allows the messages from Mercurial to be seen in the Install Window
15 def write(self, text): 15 def write(self, text):
16 statbar.SetStatusText(text) 16 statbar.SetStatusText(text)
17 wx.Yield() 17 wx.Yield()
18 sys.__stdout__.write(text) 18 #sys.__stdout__.write(text)
19 19
20 class Updater(wx.Panel): 20 class Updater(wx.Panel):
21 @debugging 21 @debugging
22 def __init__(self, parent, component): 22 def __init__(self, parent, component):
23 wx.Panel.__init__(self, parent) 23 wx.Panel.__init__(self, parent)
289 repolist = manifest.PluginChildren('updaterepo') 289 repolist = manifest.PluginChildren('updaterepo')
290 appendlist = [] 290 appendlist = []
291 for repo in repolist: 291 for repo in repolist:
292 if repo not in self.repolist: appendlist.append(repo) 292 if repo not in self.repolist: appendlist.append(repo)
293 self.repolist = repolist 293 self.repolist = repolist
294
295 #wx.Yeild() For future refrence.
296 294
297 for repo in appendlist: 295 for repo in appendlist:
298 self.id += 1 296 self.id += 1
299 #Build Constructs 297 #Build Constructs
300 self.box[self.id] = wx.StaticBox(self.repopanel, -1, str(repo)) 298 self.box[self.id] = wx.StaticBox(self.repopanel, -1, str(repo))
343 else: continue 341 else: continue
344 self.defaultcheck[self.id].SetValue(True) 342 self.defaultcheck[self.id].SetValue(True)
345 343
346 def AddRepo(self, event): 344 def AddRepo(self, event):
347 repo = self.texts['reponame'].GetValue(); repo = repo.replace(' ', '_'); repo = 'repo-' + repo 345 repo = self.texts['reponame'].GetValue(); repo = repo.replace(' ', '_'); repo = 'repo-' + repo
348 manifest.SetString('updaterepo', repo, '') #; self.repo = repo.split(',') 346 manifest.SetString('updaterepo', repo, '')
349 self.BuildRepoList(None) 347 self.BuildRepoList(None)
350 348
351 def DelRepo(self, event): 349 def DelRepo(self, event):
352 self.id = self.delete_list[event.GetEventObject()] 350 self.id = self.delete_list[event.GetEventObject()]
353 self.sizers["repolist_layout"].Hide(self.container[self.id]) 351 self.sizers["repolist_layout"].Hide(self.container[self.id])
646 self.main = False 644 self.main = False
647 sys.stdout = Term2Win() 645 sys.stdout = Term2Win()
648 logger._set_log_to_console(False) 646 logger._set_log_to_console(False)
649 logger.note("Updater Start") 647 logger.note("Updater Start")
650 component.add('validate', validate) 648 component.add('validate', validate)
651 self.updater = updaterFrame(self, "OpenRPG Update Manager 0.8 (open beta)", 649 self.updater = updaterFrame(self, "OpenRPG Update Manager 0.9 (final beta)",
652 component, manifest, self.main) 650 component, manifest, self.main)
653 if manifest.GetString("updatemana", "auto_update", "") == 'on' and self.main == False: 651 if manifest.GetString("updatemana", "auto_update", "") == 'on' and self.main == False:
654 self.AutoUpdate(); self.OnExit() 652 self.AutoUpdate(); self.OnExit()
655 else: pass 653 else: pass
656 if manifest.GetString('updatemana', 'no_update', '') == 'on' and self.main == False: 654 if manifest.GetString('updatemana', 'no_update', '') == 'on' and self.main == False: