[kupfer] core.data: Only add toplevel directories once
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [kupfer] core.data: Only add toplevel directories once
- Date: Tue, 29 Mar 2011 14:24:19 +0000 (UTC)
commit b5b6e354b4d3d00309698bcea63202ac05910392
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Tue Mar 29 16:22:32 2011 +0200
core.data: Only add toplevel directories once
kupfer/core/data.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/kupfer/core/data.py b/kupfer/core/data.py
index 9352ef9..5fc0d32 100644
--- a/kupfer/core/data.py
+++ b/kupfer/core/data.py
@@ -540,8 +540,8 @@ class DataController (gobject.GObject, pretty.OutputMixin):
abs = os.path.abspath(os.path.expanduser(opt))
return sources.FileSource((abs,), depth)
- for coll, level in zip((s_sources, S_sources), ("Catalog", "Direct")):
- for item in setctl.get_directories(level):
+ for coll, direct in zip((s_sources, S_sources), (False, True)):
+ for item in setctl.get_directories(direct):
coll.append(dir_source(item))
dir_depth = source_config("DeepDirectories", "Depth")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]