VMM/config: Fixed a typo: s/DB_MUDULES/DB_MODULES/g. v0.6.x
authorPascal Volk <user@localhost.localdomain.org>
Sat, 07 Apr 2012 20:38:48 +0000
branchv0.6.x
changeset 496 17f2c5b5098e
parent 495 612a60e9d558
child 497 5b9a03762813
VMM/config: Fixed a typo: s/DB_MUDULES/DB_MODULES/g.
VirtualMailManager/config.py
--- a/VirtualMailManager/config.py	Sat Apr 07 15:23:14 2012 +0200
+++ b/VirtualMailManager/config.py	Sat Apr 07 20:38:48 2012 +0000
@@ -20,7 +20,7 @@
 from VirtualMailManager.maillocation import known_format
 from VirtualMailManager.password import verify_scheme as _verify_scheme
 
-DB_MUDULES = ('psycopg2', 'pypgsql')
+DB_MODULES = ('psycopg2', 'pypgsql')
 DB_SSL_MODES = ('allow', 'disabled', 'prefer', 'require', 'verify-ca',
                 'verify-full')
 
@@ -440,7 +440,7 @@
         # section database
         db_err = []
         value = self.dget('database.module').lower()
-        if value not in DB_MUDULES:
+        if value not in DB_MODULES:
             db_err.append('module: ' + \
                           _(u"Unsupported database module: '%s'") % value)
         if value == 'psycopg2':
@@ -475,7 +475,7 @@
 
 def check_db_module(module):
     """Check if the *module* is a supported pgsql module."""
-    if module.lower() in DB_MUDULES:
+    if module.lower() in DB_MODULES:
         return module
     raise ConfigValueError(_(u"Unsupported database module: '%s'") %
                            get_unicode(module))