~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Robert Collins
  • Date: 2006-04-02 22:42:19 UTC
  • mto: (1634.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 1635.
  • Revision ID: robertc@robertcollins.net-20060402224219-d5a818dc987491fe
Refactor the FakeNFS support into a TransportDecorator.
 * Move the existing boilerplate ReadOnly decorator logic in to a base class
   'bzrlib.transport.decorator.TransportDecorator.'
 * Do the same to the ReadOnlyServer to create
   'bzrlib.transport.decorator.DecoratorServer'.
 * Use the new decorator support to create a trivial FakeNFSTransportDecorator
   class in bzrlib.transport.fakenfs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1635
1635
            from bzrlib.transport.memory import MemoryServer
1636
1636
            return MemoryServer
1637
1637
        if typestring == "fakenfs":
1638
 
            from bzrlib.transport.memory import FakeNFSServer
 
1638
            from bzrlib.transport.fakenfs import FakeNFSServer
1639
1639
            return FakeNFSServer
1640
1640
        msg = "No known transport type %s. Supported types are: sftp\n" %\
1641
1641
            (typestring)