l.c.v.t.AsyncVirtualTransport(Transport) : class documentation

Part of lp.codehosting.vfs.transport View In Hierarchy

Known subclasses: lp.codehosting.vfs.__init__.AsyncLaunchpadTransport

A transport for a virtual file system.

Assumes that it has a 'server' which implements 'translateVirtualPath'. This method is expected to take an absolute virtual path and translate it into a real transport and a path on that transport.

Method __init__ Undocumented
Method external_url Undocumented
Method abspath Undocumented
Method append_file Undocumented
Method clone Undocumented
Method delete Undocumented
Method delete_tree Undocumented
Method get Undocumented
Method get_bytes Undocumented
Method has Undocumented
Method iter_files_recursive Undocumented
Method listable Undocumented
Method list_dir Undocumented
Method lock_read Undocumented
Method lock_write Undocumented
Method mkdir Undocumented
Method open_write_stream Undocumented
Method put_file Undocumented
Method local_realPath Undocumented
Method readv Undocumented
Method rename Undocumented
Method rmdir Undocumented
Method stat Undocumented
Method writeChunk Undocumented
Method _abspath Return the absolute, escaped path to relpath without the schema.
Method _getUnderlyingTransportAndPath Return the underlying transport and path for relpath.
Method _translateError Translate 'failure' into something suitable for a transport.
Method _call Call a method on the backing transport, translating relative,
def __init__(self, server, url):
Undocumented
def external_url(self):
Undocumented
def _abspath(self, relpath):
Return the absolute, escaped path to relpath without the schema.
def _getUnderlyingTransportAndPath(self, relpath):
Return the underlying transport and path for relpath.
def _translateError(self, failure):
Translate 'failure' into something suitable for a transport.

This method is called as an errback by _call. Use it to translate errors from the server into something that users of the transport might expect. This could include translating vfs-specific errors into bzrlib errors (e.g. "couldn't translate" into NoSuchFile) or translating underlying paths into virtual paths.

ParametersfailureA twisted.python.failure.Failure.
def _call(self, method_name, relpath, *args, **kwargs):
Call a method on the backing transport, translating relative, virtual paths to filesystem paths.

If 'relpath' translates to a path that we only have read-access to, then the method will be called on the backing transport decorated with 'readonly+'.

def abspath(self, relpath):
Undocumented
def append_file(self, relpath, f, mode=None):
Undocumented
def clone(self, relpath=None):
Undocumented
def delete(self, relpath):
Undocumented
def delete_tree(self, relpath):
Undocumented
def get(self, relpath):
Undocumented
def get_bytes(self, relpath):
Undocumented
def has(self, relpath):
Undocumented
def iter_files_recursive(self):
Undocumented
def listable(self):
Undocumented
def list_dir(self, relpath):
Undocumented
def lock_read(self, relpath):
Undocumented
def lock_write(self, relpath):
Undocumented
def mkdir(self, relpath, mode=None):
Undocumented
def open_write_stream(self, relpath, mode=None):
Undocumented
def put_file(self, relpath, f, mode=None):
Undocumented
def local_realPath(self, relpath):
Undocumented
def readv(self, relpath, offsets, adjust_for_latency=False, upper_limit=None):
Undocumented
def rename(self, rel_from, rel_to):
Undocumented
def rmdir(self, relpath):
Undocumented
def stat(self, relpath):
Undocumented
def writeChunk(self, relpath, offset, data):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.