Mercurial > traipse_dev
comparison upmana/updatemana.py @ 89:b84e0799fed2 alpha
Traipse Alpha 'OpenRPG' {090917-03}
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:
00:
Adds menu changes to draw attention to important updates, errors, or other events. (image info coming soon)
Traipse URL is not included in the repos tab and is set as default.
01:
Fixes Copy for Windows and Linux (finally!!) users.
Fixes incomplete update to Grid and List nodes.
Fixes incomplete update to Chat Commands.
02:
Fixes problems with Remote Image Upload.
Fixes Drop and Drag of Minis to Map.
CherryPy can now use any image in the webfiles/ folder and sub-folders.
CherryPy can now Drop and Drag Minis to the Map.
03:
Minor changes to Update Manager's GUI.
Expert recommendation warning added to Revision Update.
Step down compatibility with open_rpg & component added to orpgCore.
author | sirebral |
---|---|
date | Thu, 17 Sep 2009 06:29:32 -0500 |
parents | f38df4bf9715 |
children | 0f18d16f3fe7 dcf4fbe09b70 |
comparison
equal
deleted
inserted
replaced
88:763a04270cf6 | 89:b84e0799fed2 |
---|---|
24 self.c = self.repo.changectx('tip') | 24 self.c = self.repo.changectx('tip') |
25 self.manifest = manifest | 25 self.manifest = manifest |
26 self.parent = parent | 26 self.parent = parent |
27 self.SetBackgroundColour(wx.WHITE) | 27 self.SetBackgroundColour(wx.WHITE) |
28 self.sizer = wx.GridBagSizer(hgap=1, vgap=1) | 28 self.sizer = wx.GridBagSizer(hgap=1, vgap=1) |
29 self.changelog = wx.TextCtrl(self, wx.ID_ANY, size=(325, -1), style=wx.TE_MULTILINE | wx.TE_READONLY) | 29 self.changelog = wx.TextCtrl(self, wx.ID_ANY, size=(300, -1), style=wx.TE_MULTILINE | wx.TE_READONLY) |
30 self.filelist = wx.TextCtrl(self, wx.ID_ANY, size=(275, 300), style=wx.TE_MULTILINE | wx.TE_READONLY) | 30 self.filelist = wx.TextCtrl(self, wx.ID_ANY, size=(275, 300), style=wx.TE_MULTILINE | wx.TE_READONLY) |
31 self.buttons = {} | 31 self.buttons = {} |
32 self.buttons['progress_bar'] = wx.Gauge(self, wx.ID_ANY, 100) | 32 self.buttons['progress_bar'] = wx.Gauge(self, wx.ID_ANY, 100) |
33 self.buttons['auto_text'] = wx.StaticText(self, wx.ID_ANY, "Auto Update") | 33 self.buttons['auto_text'] = wx.StaticText(self, wx.ID_ANY, "Auto Update") |
34 self.buttons['auto_check'] = wx.CheckBox(self, wx.ID_ANY) | 34 self.buttons['auto_check'] = wx.CheckBox(self, wx.ID_ANY) |
434 self.changelogcp.AddGrowableRow(1) | 434 self.changelogcp.AddGrowableRow(1) |
435 changelogcp.SetAutoLayout(True) | 435 changelogcp.SetAutoLayout(True) |
436 | 436 |
437 ## Branches / Revisions | 437 ## Branches / Revisions |
438 branchcp = wx.Panel(self) | 438 branchcp = wx.Panel(self) |
439 self.current = self.repo.dirstate.branch() | |
439 self.branchcp = wx.GridBagSizer(hgap=1, vgap=1) | 440 self.branchcp = wx.GridBagSizer(hgap=1, vgap=1) |
440 self.branches = wx.Choice(branchcp, wx.ID_ANY, choices=self.package_list) | 441 self.branches = wx.Choice(branchcp, wx.ID_ANY, choices=self.package_list) |
442 self.branches.SetSelection(self.package_list.index(self.current)) | |
441 self.branch_txt = wx.StaticText(branchcp, wx.ID_ANY, "Branches") | 443 self.branch_txt = wx.StaticText(branchcp, wx.ID_ANY, "Branches") |
442 self.branchcp.Add(self.branches, (0,0)) | 444 self.branchcp.Add(self.branches, (0,0)) |
443 self.branchcp.Add(self.branch_txt, (0,1), flag=wx.ALIGN_CENTER_VERTICAL) | 445 self.branchcp.Add(self.branch_txt, (0,1), flag=wx.ALIGN_CENTER_VERTICAL) |
444 branchcp.SetSizer(self.branchcp) | 446 branchcp.SetSizer(self.branchcp) |
445 branchcp.SetAutoLayout(True) | 447 branchcp.SetAutoLayout(True) |
480 self.sizer.AddGrowableCol(1) | 482 self.sizer.AddGrowableCol(1) |
481 self.sizer.AddGrowableRow(2) | 483 self.sizer.AddGrowableRow(2) |
482 self.SetSizer(self.sizer) | 484 self.SetSizer(self.sizer) |
483 self.SetAutoLayout(True) | 485 self.SetAutoLayout(True) |
484 | 486 |
485 self.current = self.repo.dirstate.branch() | |
486 self.currev = self.repo.changelog.rev(self.repo.branchtags()[self.current]) | 487 self.currev = self.repo.changelog.rev(self.repo.branchtags()[self.current]) |
487 self.RevInfo(self.currev) | 488 self.RevInfo(self.currev) |
488 self.revlist.Select(self.revlist.FindItem(0, str(self.currev), 1)) | 489 self.revlist.Select(self.revlist.FindItem(0, str(self.currev), 1)) |
489 self.BranchInfo(self.current) | 490 self.BranchInfo(self.current) |
490 self.Bind(wx.EVT_CHOICE, self.PackageSet) | 491 self.Bind(wx.EVT_CHOICE, self.PackageSet) |
539 | 540 |
540 def DelBranch(self, event): | 541 def DelBranch(self, event): |
541 pass | 542 pass |
542 | 543 |
543 def RevUpdate(self, event): | 544 def RevUpdate(self, event): |
544 filename = 'ignorelist.txt' | 545 dlg = wx.MessageDialog(None, 'Revision Updates are recommended for Developers only.\n\nAre you sure to preform a Revision Update?\n\nNewer builds tend to have less bugs while older revisions may no longer function properly.', 'Expert Feature', wx.YES_NO | wx.NO_DEFAULT | wx.ICON_QUESTION) |
545 self.filename = dir_struct["home"] + 'upmana' + os.sep + filename | 546 if dlg.ShowModal() == wx.ID_YES: |
546 component.get('validate').config_file(filename, "default_ignorelist.txt") | 547 dlg.Destroy() |
547 self.mana = self.LoadDoc() | 548 filename = 'ignorelist.txt' |
548 temp = dir_struct["home"] + 'upmana' + os.sep + 'tmp' + os.sep | 549 self.filename = dir_struct["home"] + 'upmana' + os.sep + filename |
549 for ignore in self.ignorelist: | 550 component.get('validate').config_file(filename, "default_ignorelist.txt") |
550 shutil.copy(ignore, temp + ignore.split('/')[len(ignore.split('/')) - 1]) | 551 self.mana = self.LoadDoc() |
551 hg.clean(self.repo, self.currev) | 552 temp = dir_struct["home"] + 'upmana' + os.sep + 'tmp' + os.sep |
552 for ignore in self.ignorelist: | 553 for ignore in self.ignorelist: |
553 shutil.copyfile(temp + ignore.split('/')[len(ignore.split('/')) - 1], ignore) | 554 shutil.copy(ignore, temp + ignore.split('/')[len(ignore.split('/')) - 1]) |
554 os.remove(temp + ignore.split('/')[len(ignore.split('/')) - 1]) | 555 hg.clean(self.repo, self.currev) |
555 pass | 556 for ignore in self.ignorelist: |
557 shutil.copyfile(temp + ignore.split('/')[len(ignore.split('/')) - 1], ignore) | |
558 os.remove(temp + ignore.split('/')[len(ignore.split('/')) - 1]) | |
559 else: | |
560 dlg.Destroy(); pass | |
556 | 561 |
557 def LoadDoc(self): | 562 def LoadDoc(self): |
558 ignore = open(self.filename) | 563 ignore = open(self.filename) |
559 self.ignorelist = [] | 564 self.ignorelist = [] |
560 for i in ignore: self.ignorelist.append(str(i [:len(i)-1])) | 565 for i in ignore: self.ignorelist.append(str(i [:len(i)-1])) |