~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/readonly.py

Merge from bzr.dev

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."""