From 9788df48a9638c6bf37bc161abefcee7f583b64c Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 18 Nov 2013 01:03:10 +0100 Subject: Use git and filesystem as data back-end --- hypoctl | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'hypoctl') diff --git a/hypoctl b/hypoctl index 40a69a5..e57e9eb 100755 --- a/hypoctl +++ b/hypoctl @@ -18,21 +18,6 @@ (import pycommand sys web os [hypo [hypo-start]]) -(try (import [config [*]]) - (catch [ImportError] - (print "Please copy the config.example.hy to config.hy and set" - "the values to your preference.") - (sys.exit 1))) - -(def db - (kwapply (web.database) - {"dbn" "postgres" "user" *dbuser* "pw" *dbpw* "db" *dbname*})) - -(defun hypo-purge [argv] - (db.delete "hfile" "TRUE") - (foreach [f (os.listdir "files/")] - (os.remove (os.path.join "files" f)))) - (defclass hypoctl-command (pycommand.CommandBase) [[usagestr "usage: hypoctl [