VirtualMailManager/MailLocation.py
changeset 9 e3d3dbeb5b84
parent 8 7e3ce56f49e6
child 32 ceb700bc4a80
equal deleted inserted replaced
8:7e3ce56f49e6 9:e3d3dbeb5b84
    34         if mid is None and maillocation is None:
    34         if mid is None and maillocation is None:
    35             raise MLE(('Either mid or maillocation must be specified.',
    35             raise MLE(('Either mid or maillocation must be specified.',
    36                 ERR.MAILLOCATION_INIT))
    36                 ERR.MAILLOCATION_INIT))
    37         elif mid is not None:
    37         elif mid is not None:
    38             try:
    38             try:
    39                 self.__id = long(tid)
    39                 self.__id = long(mid)
    40             except ValueError:
    40             except ValueError:
    41                 raise MLE(('mid must be an int/long.', ERR.MAILLOCATION_INIT))
    41                 raise MLE(('mid must be an int/long.', ERR.MAILLOCATION_INIT))
    42             self._loadByID()
    42             self._loadByID()
    43         else:
    43         else:
    44             self.__maillocation = maillocation
    44             self.__maillocation = maillocation