VirtualMailManager/transport.py
branchv0.7.x
changeset 643 df1e3b67882a
parent 637 ca6621caff2f
child 670 f374ef062c94
equal deleted inserted replaced
642:4cd9d0a9f42f 643:df1e3b67882a
    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):