b.s.s.BzrServerFactory(object) : class documentation

Part of bzrlib.smart.server View In Hierarchy

Helper class for serve_bzr.
Method __init__ Undocumented
Method set_up Undocumented
Method tear_down Undocumented
Method _expand_userdirs Translate /~/ or /~user/ to e.g. /home/foo, using
Method _make_expand_userdirs_filter Undocumented
Method _make_backing_transport Chroot transport, and decorate with userdir expander.
Method _get_stdin_stdout Undocumented
Method _make_smart_server Undocumented
Method _change_globals Undocumented
def __init__(self, userdir_expander=None, get_base_path=None):
Undocumented
def _expand_userdirs(self, path):
Translate /~/ or /~user/ to e.g. /home/foo, using self.userdir_expander (os.path.expanduser by default).

If the translated path would fall outside base_path, or the path does not start with ~, then no translation is applied.

If the path is inside, it is adjusted to be relative to the base path.

e.g. if base_path is /home, and the expanded path is /home/joe, then the translated path is joe.

def _make_expand_userdirs_filter(self, transport):
Undocumented
def _make_backing_transport(self, transport):
Chroot transport, and decorate with userdir expander.
def _get_stdin_stdout(self):
Undocumented
def _make_smart_server(self, host, port, inet, timeout):
Undocumented
def _change_globals(self):
Undocumented
def set_up(self, transport, host, port, inet, timeout):
Undocumented
def tear_down(self):
Undocumented
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.