comparison upmana/updatemana.py @ 183:0d9b746b5751 beta

Traipse Beta 'OpenRPG' {100115-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 (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 New DieRoller portability for odd Dice Added 7th Sea die roller; 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)]. Included for Mythos roller also New Warhammer FRPG Die Roller (Special thanks to Puu-san for the support) New EZ_Tree Reference system. Push a button, Traipse the tree, get a reference (Beta!) 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 Fix to Whiteboard ID to prevent random line or text deleting. Fixes to Server, Remote Server, and Server GUI Fix to Update Manager; cleaner clode for saved repositories Fixes made to Settings Panel and now 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 Fix made Image Fetching. New fetching image and new failed image Modified ID's to prevent non updated clients from ruining the fix. default_manifest.xml renamed to default_upmana.xml
author sirebral
date Fri, 15 Jan 2010 23:01:42 -0600
parents 6c5f46a5924b
children dcae32e219f1
comparison
equal deleted inserted replaced
172:8834425a85b0 183:0d9b746b5751
3 import shutil 3 import shutil
4 4
5 from orpg.orpgCore import component 5 from orpg.orpgCore import component
6 from orpg.dirpath import dir_struct 6 from orpg.dirpath import dir_struct
7 from orpg.tools.orpg_log import logger, crash 7 from orpg.tools.orpg_log import logger, crash
8 from orpg.tools.decorators import debugging
9 from upmana.validate import validate 8 from upmana.validate import validate
10 from orpg.dirpath import dir_struct 9 from orpg.dirpath import dir_struct
11 from mercurial import ui, hg, commands, repo, revlog, cmdutil, util 10 from mercurial import ui, hg, commands, repo, revlog, cmdutil, util
12 11
13 class Term2Win(object): 12 class Term2Win(object):
16 statbar.SetStatusText(text) 15 statbar.SetStatusText(text)
17 wx.Yield() 16 wx.Yield()
18 sys.__stdout__.write(text) 17 sys.__stdout__.write(text)
19 18
20 class Updater(wx.Panel): 19 class Updater(wx.Panel):
21 @debugging
22 def __init__(self, parent, component): 20 def __init__(self, parent, component):
23 wx.Panel.__init__(self, parent) 21 wx.Panel.__init__(self, parent)
24 ### Status Bar ### 22 ### Status Bar ###
25 #statbar.SetStatusText('Select a Package and Update') 23 #statbar.SetStatusText('Select a Package and Update')
26 statbar.SetStatusText('New Status Bar') 24 statbar.SetStatusText('New Status Bar')
55 self.sizer.Add(self.buttons['no_text'], (3,1)) 53 self.sizer.Add(self.buttons['no_text'], (3,1))
56 self.sizer.Add(self.buttons['no_check'], (3,2), flag=wx.EXPAND) 54 self.sizer.Add(self.buttons['no_check'], (3,2), flag=wx.EXPAND)
57 self.sizer.Add(self.buttons['advanced'], (2,3), flag=wx.EXPAND) 55 self.sizer.Add(self.buttons['advanced'], (2,3), flag=wx.EXPAND)
58 self.sizer.Add(self.buttons['update'], (3,3), flag=wx.EXPAND) 56 self.sizer.Add(self.buttons['update'], (3,3), flag=wx.EXPAND)
59 self.sizer.Add(self.buttons['finish'], (4,3), flag=wx.EXPAND) 57 self.sizer.Add(self.buttons['finish'], (4,3), flag=wx.EXPAND)
60 self.buttons['finish'].Disable() 58 #self.buttons['finish'].Disable()
61 self.sizer.AddGrowableCol(0) 59 self.sizer.AddGrowableCol(0)
62 self.sizer.AddGrowableRow(0) 60 self.sizer.AddGrowableRow(0)
63 self.SetSizer(self.sizer) 61 self.SetSizer(self.sizer)
64 self.SetAutoLayout(True) 62 self.SetAutoLayout(True)
65 self.get_package 63 self.get_package
129 for i in ignore: self.ignorelist.append(str(i [:len(i)-1])) 127 for i in ignore: self.ignorelist.append(str(i [:len(i)-1]))
130 manifest = ignore.readlines() 128 manifest = ignore.readlines()
131 ignore.close() 129 ignore.close()
132 130
133 def Finish(self, evt=None): 131 def Finish(self, evt=None):
134 try: self.parent.Destroy() 132 try: component.get('upmana-win').OnClose(None)
135 except: 133 except Exception, e:
136 print 'Fail'; exit() 134 print 'Fail', e; exit()
137 135
138 def ChooseBranch(self, evt=None): 136 def ChooseBranch(self, evt=None):
139 dlg = wx.Dialog(self, wx.ID_ANY, "Package Selector", style=wx.DEFAULT_DIALOG_STYLE) 137 dlg = wx.Dialog(self, wx.ID_ANY, "Package Selector", style=wx.DEFAULT_DIALOG_STYLE)
140 if wx.Platform == '__WXMSW__': icon = wx.Icon(dir_struct["icon"]+'d20.ico', wx.BITMAP_TYPE_ICO) 138 if wx.Platform == '__WXMSW__': icon = wx.Icon(dir_struct["icon"]+'d20.ico', wx.BITMAP_TYPE_ICO)
141 else: icon = wx.Icon(dir_struct["icon"]+"d20.xpm", wx.BITMAP_TYPE_XPM ) 139 else: icon = wx.Icon(dir_struct["icon"]+"d20.xpm", wx.BITMAP_TYPE_XPM )
713 sizer.Add(nb, 1, wx.EXPAND) 711 sizer.Add(nb, 1, wx.EXPAND)
714 p.SetSizer(sizer) 712 p.SetSizer(sizer)
715 p.Layout() 713 p.Layout()
716 self.Refresh() 714 self.Refresh()
717 self.Bind(wx.EVT_CLOSE, self.OnClose) 715 self.Bind(wx.EVT_CLOSE, self.OnClose)
716 component.add('upmana-win', self)
718 717
719 def OnClose(self, event): 718 def OnClose(self, event):
720 if self.main == False: self.Destroy() 719 if self.main == False: self.Destroy()
721 if self.main == True: self.Hide() 720 if self.main == True: self.Hide()
722 721