changeset 41:6d18ee109e02 traipse_dev

Duplicates removed, refresh button still prints. Moving to Pull command and Delete button.
author sirebral
date Wed, 05 Aug 2009 09:22:11 -0500
parents 95db4430caed
children 81254b3935fb
files orpg/orpg_version.py upmana/updatemana.py
diffstat 2 files changed, 11 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/orpg/orpg_version.py	Wed Aug 05 09:10:40 2009 -0500
+++ b/orpg/orpg_version.py	Wed Aug 05 09:22:11 2009 -0500
@@ -4,7 +4,7 @@
 #BUILD NUMBER FORMAT: "YYMMDD-##" where ## is the incremental daily build index (if needed)
 DISTRO = "Traipse Dev"
 DIS_VER = "Grumpy Goblin"
-BUILD = "090805-04"
+BUILD = "090805-05"
 
 # This version is for network capability.
 PROTOCOL_VERSION = "1.2"
--- a/upmana/updatemana.py	Wed Aug 05 09:10:40 2009 -0500
+++ b/upmana/updatemana.py	Wed Aug 05 09:22:11 2009 -0500
@@ -253,6 +253,11 @@
         self.sizers["repolist_layout"] = wx.FlexGridSizer(rows=1, cols=1, hgap=2, vgap=5)
         self.manifest = manifest
 
+        self.id = 0; self.box = {}; self.main = {}; self.container = {}; self.layout = {}
+        self.name = {}; self.url = {}; self.pull = {}; self.uri = {}; self.delete = {}
+        self.defaultcheck = {}; self.default = {}; self.repotrac = {}
+        self.pull_list = {}; self.delete_list = {}; self.defchecklist = {}
+
         self.BuildRepoList(None)
 
         self.sizers["repolist_layout"].AddGrowableCol(0)
@@ -277,11 +282,9 @@
 
     def BuildRepoList(self, event):
         self.repolist = self.manifest.GetList('UpdateManifest', 'repolist', '')
+        try: self.repolist = self.repo
+        except: pass
 
-        self.id = 0; self.box = {}; self.main = {}; self.container = {}; self.layout = {}
-        self.name = {}; self.url = {}; self.pull = {}; self.uri = {}; self.delete = {}
-        self.defaultcheck = {}; self.default = {}; self.repotrac = {}
-        self.pull_list = {}; self.delete_list = {}; self.defchecklist = {}
 
         #wx.Yeild()  For future refrence.
 
@@ -315,13 +318,13 @@
 
     def AddRepo(self, event):
         repo = self.texts['reponame'].GetValue(); repo = repo.replace(' ', '_'); repo = 'repo-' + repo
-        self.manifest.SetString('updaterepo', repo, ''); repo = repo.split(',')
+        self.manifest.SetString('updaterepo', repo, ''); self.repo = repo.split(',')
         repolist = self.manifest.GetList('UpdateManifest', 'repolist', '')
         if repolist == '':
             pass
         else:
-            repo = repolist + repo
-        self.manifest.SetList('UpdateManifest', 'repolist', repo); print repo
+            repolist = repolist + self.repo
+        self.manifest.SetList('UpdateManifest', 'repolist', repolist)
         self.BuildRepoList(None)
 
     def RefreshRepo(self, event):