Mercurial > traipse_dev
diff upmana/updatemana.py @ 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 |
line wrap: on
line diff
--- 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):