VirtualMailManager/MailLocation.py
changeset 133 2d5c4745efec
parent 122 30abf0abf8f8
child 138 617f27715b01
equal deleted inserted replaced
132:fa22bd13b4d1 133:2d5c4745efec
    41             if re.match(RE_MAILLOCATION, maillocation):
    41             if re.match(RE_MAILLOCATION, maillocation):
    42                 self.__maillocation = maillocation
    42                 self.__maillocation = maillocation
    43                 self._loadByName()
    43                 self._loadByName()
    44             else:
    44             else:
    45                 raise MLE(
    45                 raise MLE(
    46                     _(u'Invalid folder name »%s«, it may consist only of\n\
    46                     _(u'Invalid folder name “%s”, it may consist only of\n\
    47 1 - 20 single byte characters (A-Z, a-z, 0-9 and _).') % maillocation,
    47 1 - 20 single byte characters (A-Z, a-z, 0-9 and _).') % maillocation,
    48                         ERR.MAILLOCATION_INIT)
    48                         ERR.MAILLOCATION_INIT)
    49 
    49 
    50     def _loadByID(self):
    50     def _loadByID(self):
    51         dbc = self._dbh.cursor()
    51         dbc = self._dbh.cursor()