summaryrefslogtreecommitdiff
path: root/portato
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2008-11-03 00:17:47 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2008-11-03 00:17:47 +0100
commit595216743bad882172d36129a84f9f3c39ab00e1 (patch)
tree578d2058dcf0bb37519b615cb6de6887027a153a /portato
parent7617b3f9fe7ab2d29f23babfa7bfbd1347253453 (diff)
downloadportato-595216743bad882172d36129a84f9f3c39ab00e1.tar.gz
portato-595216743bad882172d36129a84f9f3c39ab00e1.tar.bz2
portato-595216743bad882172d36129a84f9f3c39ab00e1.zip
Change ', ' into '@' for the selection pathes
Diffstat (limited to 'portato')
-rw-r--r--portato/gui/windows/main.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/portato/gui/windows/main.py b/portato/gui/windows/main.py
index 52786b3..52956e7 100644
--- a/portato/gui/windows/main.py
+++ b/portato/gui/windows/main.py
@@ -1025,7 +1025,7 @@ class MainWindow (Window):
if name:
if oldVersion > 1: # newer one
- name, pos = map(str.strip, name.split(","))
+ name, pos = name.split("@")
if model[pos][col] != name: # need to search :(
debug("Pkg path does not match. Searching...")
@@ -1046,7 +1046,7 @@ class MainWindow (Window):
if name:
if oldVersion > 1: # newer one
- name, pos = map(str.strip, name.split(","))
+ name, pos = name.split("@")
if self.cfg.get_boolean("collapseCats", "GUI"):
try:
@@ -1091,7 +1091,7 @@ class MainWindow (Window):
def save_pkg_selection ():
store, iter = self.pkgList.get_selection().get_selected()
if iter:
- return "%s, %s" % (store.get_value(iter, 1), store.get_string_from_iter(iter))
+ return "%s@%s" % (store.get_value(iter, 1), store.get_string_from_iter(iter))
else:
return ""
@@ -1116,9 +1116,9 @@ class MainWindow (Window):
if catVal == pkgVal: # the info in the pkgList has higher precedence
pos = catStore.get_string_from_iter(catIter)
- return "%s, %s" % (pkgVal, pos)
+ return "%s@%s" % (pkgVal, pos)
else:
- return "%s, 0" % self.selCatName
+ return "%s@0" % self.selCatName
# PLUGIN
def load_plugin (p):
@@ -1160,8 +1160,8 @@ class MainWindow (Window):
([("gtksessionversion", "session")], load_session_version, lambda: SESSION_VERSION),
([("width", "window"), ("height", "window")], lambda w,h: self.window.resize(int(w), int(h)), self.window.get_size),
([("vpanedpos", "window"), ("hpanedpos", "window")], load_paned, save_paned),
- ([("catsel", "window")], load_cat_selection, save_cat_selection, ["app-portage, 0"]),
- ([("pkgsel", "window")], load_pkg_selection, save_pkg_selection, ["portato, 0"])
+ ([("catsel", "window")], load_cat_selection, save_cat_selection, ["app-portage@0"]),
+ ([("pkgsel", "window")], load_pkg_selection, save_pkg_selection, ["portato@0"])
#([("merge", "queue"), ("unmerge", "queue"), ("oneshot", "queue")], load_queue, save_queue),
])