started converting
authorMart Lubbers <mart@martlubbers.net>
Mon, 19 May 2014 14:45:52 +0000 (16:45 +0200)
committerMart Lubbers <mart@martlubbers.net>
Mon, 19 May 2014 14:45:52 +0000 (16:45 +0200)
program/hypconvert/hypconvert.py
program/hypfront/install.sh
program/output [new symlink]

index e69de29..04b5eda 100644 (file)
@@ -0,0 +1,16 @@
+#!/bin/env python
+# -*- coding: utf-8 -*-
+import pprint
+import json
+import ast
+import re
+
+with open('../output/raw_out.txt', 'r') as data:
+    d = data.readline()
+    d = re.sub('\)\]}$', '}',
+               re.sub('\)\],', ',',
+                      re.sub('\[Field\(\'.*?\', ', '', d)))
+    print d
+    d = ast.literal_eval(d)
+
+pprint.pprint(d)
index 148c399..868501d 100644 (file)
@@ -4,3 +4,4 @@ sudo cp -v ./*.{xml,py,html,js} /var/www/py/
 sudo mkdir /var/www/py/files
 sudo chown -R mart:www-data /var/www/py
 sudo chmod -R 770 /var/www/py
+ln -s /var/www/py/files/ ../output
diff --git a/program/output b/program/output
new file mode 120000 (symlink)
index 0000000..6550f0b
--- /dev/null
@@ -0,0 +1 @@
+/var/www/py/files/
\ No newline at end of file