Remove old working_dir code
Committed f2286b
--- a/webint_code/__init__.py
+++ b/webint_code/__init__.py
return files
-# XXX @app.wrap
-# XXX def set_working_dir(handler, main_app):
-# XXX web.tx.host.working_dir = working_dir
-# XXX yield
-
-
@app.query
def create_project(db, name):
"""Create a project."""
subprocess.run(["htpasswd", "-cb", code_dir / "gitpasswd", "owner", token])
# XXX subprocess.run(["sudo", "service", "nginx", "restart"])
- # XXX gmpg.clone_repo(
- # XXX f"{web.tx.origin}/code/projects/{name}.git", f"{working_dir}/{name}"
- # XXX )
-
web.application("webint_posts").model.create(
"entry",
url=f"/code/projects/{name}",