equal
deleted
inserted
replaced
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() |