def _calc_realm_from_path_provider(self, path_info, environ):
if environ:<EOL><INDENT>dav_provider = environ["<STR_LIT>"]<EOL><DEDENT>else:<EOL><INDENT>_share, dav_provider = self.wsgidav_app.resolve_provider(path_info)<EOL><DEDENT>if not dav_provider:<EOL><INDENT>logger.warn(<EOL>"<STR_LIT>".format(<EOL>util.safe_re_encode(path_info, sys.stdout.encoding), None<EOL>)<EOL>)<EOL>return None<EOL><DEDENT>realm = dav_provider.share_path<EOL>if realm == "<STR_LIT>":<EOL><INDENT>realm = "<STR_LIT:/>"<EOL><DEDENT>return realm<EOL>
Internal helper for derived classes to implement get_domain_realm().