* 'VirtualMailManager/Config.py'
authorPascal Volk <neverseen@users.sourceforge.net>
Tue, 23 Dec 2008 19:39:54 +0000
changeset 95 fc008eb12186
parent 94 0d303d15549e
child 96 e903c8baa72d
* 'VirtualMailManager/Config.py' - fixed parenthesis in Config.configure() * 'setup.py' - updated url to http://vmm.localdomain.org/ - adjusted long_description * 'vmm' - fixed UnicodeDecodeError, that could occur with german locale.
VirtualMailManager/Config.py
setup.py
vmm
--- a/VirtualMailManager/Config.py	Mon Dec 08 22:23:26 2008 +0000
+++ b/VirtualMailManager/Config.py	Tue Dec 23 19:39:54 2008 +0000
@@ -131,7 +131,7 @@
         except ValueError:
             self.set('config', 'done', 'False')
             self.__changes = True
-        print _(u"Using configuration file: %s\n" % self.__cfgFileName)
+        print _(u"Using configuration file: %s\n") % self.__cfgFileName
         for s in sections:
             if s != 'config':
                 print _(u'* Config section: »%s«') % s
--- a/setup.py	Mon Dec 08 22:23:26 2008 +0000
+++ b/setup.py	Tue Dec 23 19:39:54 2008 +0000
@@ -10,9 +10,9 @@
 from VirtualMailManager.constants.VERSION import VERSION
 
 long_description = """
-Virtual Mail Manager is a command line tool for administrators/postmasters to
-manage domains, accounts and aliases. It's designed for Dovecot and Postfix
-with a PostgreSQL backend.
+Virtual Mail Manager is a command line tool for
+administrators/postmasters to manage domains, accounts and aliases.
+It's designed for Dovecot and Postfix with a PostgreSQL backend.
 """
 
 # remove existing MANIFEST
@@ -29,7 +29,7 @@
       author='Pascal Volk',
       author_email='p.volk@veb-it.de',
       license='BSD License',
-      url='http://vmm.sf.net/',
+      url='http://vmm.localdomain.org/',
       download_url='http://sf.net/project/showfiles.php?group_id=213727',
       platforms=['linux2', 'openbsd4'],
       classifiers=[
--- a/vmm	Mon Dec 08 22:23:26 2008 +0000
+++ b/vmm	Tue Dec 23 19:39:54 2008 +0000
@@ -491,4 +491,7 @@
     except (EOFError, KeyboardInterrupt):
         w_err(EXIT.USER_INTERRUPT, '\n%s!\n' % _(u'Ouch'))
     except (VMME.VMMConfigException, VMME.VMMException), e:
-        w_err(e.code(), "%s: %s" % (_(u'Error'), e.msg()))
+        if e.code() != ERR.DATABASE_ERROR:
+            w_err(e.code(), "%s: %s" % (_(u'Error'), e.msg()))
+        else:
+            w_err(e.code(), "%s" % unicode(e.msg(), ENCODING, 'replace'))