equal
deleted
inserted
replaced
30 """ |
30 """ |
31 self._dbh = dbh |
31 self._dbh = dbh |
32 self._tid = 0 |
32 self._tid = 0 |
33 assert any((tid, transport)) |
33 assert any((tid, transport)) |
34 if tid: |
34 if tid: |
35 assert not isinstance(tid, bool) and isinstance(tid, (int, long)) |
35 assert not isinstance(tid, bool) and isinstance(tid, int) |
36 self._load_by_id(tid) |
36 self._load_by_id(tid) |
37 else: |
37 else: |
38 assert isinstance(transport, basestring) |
38 assert isinstance(transport, str) |
39 self._transport = transport |
39 self._transport = transport |
40 self._load_by_name() |
40 self._load_by_name() |
41 |
41 |
42 @property |
42 @property |
43 def tid(self): |
43 def tid(self): |