From 02f5ba536b22716e5e5681d33c76fef891625d15 Mon Sep 17 00:00:00 2001 From: David Rousselie Date: Fri, 27 Oct 2006 13:21:00 +0200 Subject: [PATCH] Correct storage module name in utils darcs-hash:20061027112100-86b55-e6f83d2591a0aef653652c0bac188a10aa96ce2a.gz --- src/utils/jmc_converter.py | 8 ++++---- src/utils/jmc_dump.py | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/utils/jmc_converter.py b/src/utils/jmc_converter.py index 28d49b0..30edc1a 100644 --- a/src/utils/jmc_converter.py +++ b/src/utils/jmc_converter.py @@ -23,7 +23,7 @@ import sys sys.path.insert(0, "..") import types -import jabber.storage +import jmc.utils.storage import os.path import re @@ -31,8 +31,8 @@ if len(sys.argv) != 5: print >>sys.stderr, "Usage: " + sys.argv[0] + " from_type from_db_file to_type to_db_file" print >>sys.stderr, "Supported DB type are :" for var in [aclass - for aclass in dir(jabber.storage) - if type(getattr(jabber.storage, aclass)) == types.ClassType \ + for aclass in dir(jmc.utils.storage) + if type(getattr(jmc.utils.storage, aclass)) == types.ClassType \ and re.compile(".+Storage$").match(aclass) is not None]: print >>sys.stderr, "\t" + var sys.exit(1) @@ -46,7 +46,7 @@ if not os.path.exists(from_file): print >>sys.stderr, from_file + " does not exist." sys.exit(1) -from jabber.storage import * +from jmc.utils.storage import * from_storage = None to_storage = None diff --git a/src/utils/jmc_dump.py b/src/utils/jmc_dump.py index 9f706b4..721f0f2 100644 --- a/src/utils/jmc_dump.py +++ b/src/utils/jmc_dump.py @@ -23,7 +23,7 @@ import sys sys.path.insert(0, "..") import types -import jabber.storage +import jmc.utils.storage import os.path import re @@ -32,8 +32,8 @@ if len(sys.argv) != 3: print >>sys.stderr, "Usage: " + sys.argv[0] + " db_type db_file" print >>sys.stderr, "Supported DB type are :" for var in [aclass - for aclass in dir(jabber.storage) - if type(getattr(jabber.storage, aclass)) == types.ClassType \ + for aclass in dir(jmc.utils.storage) + if type(getattr(jmc.utils.storage, aclass)) == types.ClassType \ and re.compile(".+Storage$").match(aclass) is not None]: print >>sys.stderr, "\t" + var sys.exit(1) @@ -45,7 +45,7 @@ if not os.path.exists(from_file): print >>sys.stderr, from_file + " does not exist." sys.exit(1) -from jabber.storage import * +from jmc.utils.storage import * try: from_storage = globals()[from_storage_class + "Storage"](2, db_file = from_file)