~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/readonly.py

  • Committer: John Arbash Meinel
  • Date: 2007-04-28 15:04:17 UTC
  • mfrom: (2466 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2566.
  • Revision ID: john@arbash-meinel.com-20070428150417-trp3pi0pzd411pu4
[merge] bzr.dev 2466

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Implementation of Transport that adapts another transport to be readonly."""
18
18
 
19
 
from bzrlib.errors import TransportNotPossible
 
19
from bzrlib.errors import TransportNotPossible, NoSmartServer, NoSmartMedium
20
20
from bzrlib.transport.decorator import TransportDecorator, DecoratorServer
21
21
 
22
22
 
71
71
        """See Transport.lock_write."""
72
72
        raise TransportNotPossible('readonly transport')
73
73
 
 
74
    def get_smart_client(self):
 
75
        raise NoSmartServer(self.base)
 
76
 
 
77
    def get_smart_medium(self):
 
78
        raise NoSmartMedium(self)
 
79
 
 
80
 
74
81
 
75
82
class ReadonlyServer(DecoratorServer):
76
83
    """Server for the ReadonlyTransportDecorator for testing with."""