"scripts.mit.edu",
"/~" + util.get_dir_owner(homedir) + web_path.rstrip('/'),
"", "", "")
+ else:
+ logging.info("Directory location did not contain web_scripts: %s", dir)
def user_quota(dir=None):
"""
if url:
if isinstance(url, str):
url = urlparse.urlparse(url)
+ logging.info("wizard.deploy.web: Using URL %s", url)
yield url
return
for entry in pkg_resources.iter_entry_points("wizard.deploy.web"):
+ logging.debug("wizard.deploy.web: Processing %s", entry)
f = entry.load()
for r in f(dir):
if isinstance(r, str):
r = urlparse.urlparse(r)
+ logging.info("wizard.deploy.web: Using URL %s", r)
yield r
# try the environment
host = os.getenv("WIZARD_WEB_HOST")
path = os.getenv("WIZARD_WEB_PATH")
if host is not None and path is not None:
- yield urlparse.ParseResult(
- "http",
- host,
- path.rstrip('/'),
- "", "", "")
+ r = urlparse.ParseResult(
+ "http",
+ host,
+ path.rstrip('/'),
+ "", "", "")
+ logging.info("wizard.deploy.web: Using URL %s", r)
+ yield r
+
+ logging.info("wizard.deploy.web: Exhausted URLs")
## -- Model Objects --