VMM/handler: _make_home() Create the domain directory if it v0.6.x
authorPascal Volk <neverseen@users.sourceforge.net>
Fri, 30 Jul 2010 09:45:51 +0000
branchv0.6.x
changeset 330 3fe8d6cdbe3a
parent 329 41789df75339
child 331 270b57af85de
VMM/handler: _make_home() Create the domain directory if it doesn't exist for some reason.
VirtualMailManager/handler.py
--- a/VirtualMailManager/handler.py	Fri Jul 30 09:37:44 2010 +0000
+++ b/VirtualMailManager/handler.py	Fri Jul 30 09:45:51 2010 +0000
@@ -264,8 +264,7 @@
         """Create a home directory for the new Account *account*."""
         domdir = account.domain.directory
         if not lisdir(domdir):
-            raise VMMError(_(u"No such directory: %s") % domdir,
-                           NO_SUCH_DIRECTORY)
+            self._make_domain_dir(account.domain)
         os.umask(0007)
         uid = account.uid
         os.chdir(domdir)