VirtualMailManager/MailLocation.py
changeset 87 f9090d1a0730
parent 76 14c0a092d7d2
child 102 485d3f7d6981
--- a/VirtualMailManager/MailLocation.py	Tue Sep 16 05:55:54 2008 +0000
+++ b/VirtualMailManager/MailLocation.py	Tue Sep 16 20:03:09 2008 +0000
@@ -18,7 +18,7 @@
 from Exceptions import VMMMailLocationException as MLE
 import constants.ERROR as ERR
 
-RE_MAILLOCATION = """^[\w]{1,20}$"""
+RE_MAILLOCATION = """^\w{1,20}$"""
 
 class MailLocation:
     """A wrapper class thats provide access to the maillocation table"""
@@ -43,7 +43,6 @@
                 raise MLE(_('mid must be an int/long.'), ERR.MAILLOCATION_INIT)
             self._loadByID()
         else:
-            re.compile(RE_MAILLOCATION)
             if re.match(RE_MAILLOCATION, maillocation):
                 self.__maillocation = maillocation
                 self._loadByName()