r392 - in branches/rewrite: . src
Otavio Salvador
partial-mirror-devel@lists.alioth.debian.org
Sat, 11 Dec 2004 18:14:38 -0700
Author: otavio
Date: Sat Dec 11 18:14:37 2004
New Revision: 392
Modified:
branches/rewrite/ (props changed)
branches/rewrite/src/Backend.py
Log:
r430@nurf: otavio | 2004-12-12T01:13:32.677950Z
Include namespace.
Modified: branches/rewrite/src/Backend.py
==============================================================================
--- branches/rewrite/src/Backend.py (original)
+++ branches/rewrite/src/Backend.py Sat Dec 11 18:14:37 2004
@@ -17,9 +17,9 @@
# $Id: DirManagement.py 249 2004-09-25 23:32:39Z zufus $
-from Config import *
-from Dists import *
-from Pool import *
+import Config
+import Dists
+import Pool
class Backend:
"""
@@ -36,12 +36,12 @@
self._cfg = config
self._name = name
- if isinstance(self._cfg.getBackend(self._name), ConfigBackendMirror):
- self._dists = RemoteDists(self)
- self._pool = RemotePool(self)
- elif isinstance(self._cfg.getBackend(self._name), ConfigBackendMerge):
- self._dists = LocalDists(self)
- self._pool = Pool(self)
+ if isinstance(self._cfg.getBackend(self._name), Config.ConfigBackendMirror):
+ self._dists = Dists.RemoteDists(self)
+ self._pool = Pool.RemotePool(self)
+ elif isinstance(self._cfg.getBackend(self._name), Config.ConfigBackendMerge):
+ self._dists = Dists.LocalDists(self)
+ self._pool = Pool.Pool(self)
def __getitem__ (self, key):
try: