changeset 62:e8029caed892 ornery-dev

Traipse Dev 'OpenRPG' {090813-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: Minor fix to Update Manager. Files only shows files added to the most recent commit. Please Manifest your important files when switching branches. Nodehandler now adds .xml to saved nodes if .xml is not the last 4 characters.
author sirebral
date Thu, 13 Aug 2009 13:01:09 -0500
parents f3d8101211c4
children c160f26ecf65
files orpg/gametree/nodehandlers/core.py upmana/updatemana.py
diffstat 2 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/orpg/gametree/nodehandlers/core.py	Thu Aug 13 04:25:10 2009 -0500
+++ b/orpg/gametree/nodehandlers/core.py	Thu Aug 13 13:01:09 2009 -0500
@@ -272,8 +272,9 @@
     def on_save(self,evt):
         f = wx.FileDialog(self.tree,"Select a file", orpg.dirpath.dir_struct["user"],"","XML files (*.xml)|*.xml",wx.SAVE)
         if f.ShowModal() == wx.ID_OK:
-            type = f.GetFilterIndex()
-            file = open(f.GetPath(),"w")
+            type = f.GetFilterIndex()
+            if f.GetPath()[:len(f.GetPath())-4] != '.xml': file = open(f.GetPath()+'.xml',"w")
+            else: file = open(f.GetPath(),"w")
             file.write(self.toxml(1))
             file.close()
         f.Destroy()
--- a/upmana/updatemana.py	Thu Aug 13 04:25:10 2009 -0500
+++ b/upmana/updatemana.py	Thu Aug 13 13:01:09 2009 -0500
@@ -176,26 +176,25 @@
 
     def BranchInfo(self, branch):
         cs = self.repo.changectx( self.current ).changeset()
+        rev = self.repo.changelog.rev(self.repo.branchtags()[self.current]) #Current revision number. Use in Controls
         self.changelog.SetValue('')
         changelog = cs[4]
         self.changelog.AppendText(changelog + '\n')
         self.filelist.SetValue('')
-        self.filelist.AppendText("Currently selected branch: " + branch + "\n\nAuthor: "+cs[1]+"\n\nFiles Modified (in branch): \n")
-        for f in cs[3]:
-            self.filelist.AppendText(f+"\n")
+        self.filelist.AppendText("Currently selected branch: " + branch + "\n\nAuthor: "+cs[1]+"\n\nFiles Modified (in update): \n")
+        for f in cs[3]: self.filelist.AppendText(f+"\n")
 
     def get_packages(self, type=None):
         #Fixed and ready for Test. Can be cleaner
         self.package_list = []
         b = self.repo.branchtags()
-        heads = dict.fromkeys(self.repo.heads(), 1)
+        heads = dict.fromkeys(self.repo.heads(), 1) #The code below looks superfluous but there is good info inside
         l = [((n in heads), self.repo.changelog.rev(n), n, t) for t, n in b.items()]
         l.sort()
         l.reverse()
         for ishead, r, n, t in l: self.package_list.append(t)
 
     def get_package(self):
-        #Fixed and ready for test.
         self.get_packages()
         if self.package_list == None: return None
         return None
@@ -239,6 +238,7 @@
         self.sizers["newrepo_layout"].Add(self.texts["reponame"], -1, wx.EXPAND)
         self.sizers["newrepo_layout"].AddGrowableCol(1)
         self.sizers["newbutton"].Add(self.sizers["newrepo_layout"], -1, wx.EXPAND)
+
         #Repo List Panel
         self.repopanel = wx.ScrolledWindow(self)
         self.repopanel.SetScrollbars(20,20,55,40)
@@ -448,7 +448,6 @@
     def OnClose(self, event):
         if self.main == False: self.Destroy()
         if self.main == True: self.Hide()
-
 
 class updateApp(wx.App):
     def OnInit(self):