VirtualMailManager/transport.py
branchv0.6.x
changeset 360 44283818f8db
parent 352 22d115376e4d
child 366 d6573da35b5f
equal deleted inserted replaced
359:7fa919dab42c 360:44283818f8db
    74         result = dbc.fetchone()
    74         result = dbc.fetchone()
    75         dbc.close()
    75         dbc.close()
    76         if result:
    76         if result:
    77             self._transport = result[0]
    77             self._transport = result[0]
    78         else:
    78         else:
    79             raise TransportError(_(u'Unknown tid specified.'),
    79             raise TransportError(_(u'Unknown transport id specified.'),
    80                                  UNKNOWN_TRANSPORT_ID)
    80                                  UNKNOWN_TRANSPORT_ID)
    81 
    81 
    82     def _load_by_name(self):
    82     def _load_by_name(self):
    83         """Load a transport by its transport name from the database."""
    83         """Load a transport by its transport name from the database."""
    84         dbc = self._dbh.cursor()
    84         dbc = self._dbh.cursor()