~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/readonly.py

  • Committer: Martin Pool
  • Date: 2007-04-24 05:02:04 UTC
  • mfrom: (2449 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2450.
  • Revision ID: mbp@sourcefrog.net-20070424050204-bfkc1qiq0axt5f14
Merge trunk & fix NEWS conflict

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