Code Repositories xandikos / aa2df5e
Provide href for current user principal. Jelmer Vernooń≥ 2 years ago
1 changed file(s) with 7 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
757757 """A wsgi App that provides a Xandikos web server.
758758 """
759759
760 def __init__(self, backend, current_user_principal):
760 def __init__(self, backend, current_user_principal_href):
761761 super(XandikosApp, self).__init__(backend)
762762 self.register_properties([
763763 webdav.ResourceTypeProperty(),
764764 webdav.CurrentUserPrincipalProperty(
765 current_user_principal),
765 current_user_principal_href),
766766 webdav.PrincipalURLProperty(),
767767 webdav.DisplayNameProperty(),
768768 webdav.GetETagProperty(),
933933 'Run xandikos with --autocreate?',
934934 options.current_user_principal)
935935
936 current_user_principal_href = posixpath.join(
937 options.route_prefix,
938 options.current_user_principal.lstrip('/'))
939
936940 app = XandikosApp(
937941 backend,
938 current_user_principal=options.current_user_principal)
942 current_user_principal_href=current_user_principal_href)
939943
940944 from wsgiref.simple_server import make_server
941945 app = WellknownRedirector(app, options.route_prefix)