better install and writing to files
authorMart Lubbers <mart@martlubbers.net>
Thu, 15 May 2014 14:40:06 +0000 (16:40 +0200)
committerMart Lubbers <mart@martlubbers.net>
Thu, 15 May 2014 14:40:06 +0000 (16:40 +0200)
log/2014-05-15.txt [new file with mode: 0644]
program/hypfront/hyper.py
program/hypfront/install.sh
program/sites.txt [new file with mode: 0644]

diff --git a/log/2014-05-15.txt b/log/2014-05-15.txt
new file mode 100644 (file)
index 0000000..5aa4a1d
--- /dev/null
@@ -0,0 +1,6 @@
+TIME: 
+
+http://www.tga.nl/kalender organisatie level.
+mail sturen naar pemberton over xforms
+
+volgende week backend processen
index 2613481..7eedaf3 100644 (file)
@@ -3,10 +3,10 @@
 
 from mod_python import apache, util
 import feedparser
-import pprint
 import re
 import urllib
-
+import subprocess
+import os
 
 def req_pre_pos(req):
     req.log_error('handler')
@@ -19,14 +19,17 @@ def req_pre_pos(req):
         <title>HyperFrontend RSS feed POSTREQUEST</title>
     </head>
     <body>
-        Thanks submitting: {}<br />
+        Thanks submitting: <br />
         <a href="index.html">Enter new rss feed</a>
         <pre>
 {}
         </pre>
     </body>
 </html>
-""".format(args.keys(), args['content']))
+""".format(args))
+    os.chdir('/var/www/py/files')
+    with open('raw_out.txt', 'w') as f:
+        f.write(str(args))
 
 
 def req_pre(req):
index 46ac56c..148c399 100644 (file)
@@ -1,3 +1,6 @@
-sudo rm -v /var/www/py/*
-sudo cp -v --preserve ./*.{xml,py,html,js} /var/www/py/
+sudo rm -rv /var/www/py/*
+sudo cp -v ./*.{xml,py,html,js} /var/www/py/
 #sudo chown -vR www-data:www-data /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
diff --git a/program/sites.txt b/program/sites.txt
new file mode 100644 (file)
index 0000000..03236ff
--- /dev/null
@@ -0,0 +1,15 @@
+www.ziggodome.nl
+www.hmh.nl
+http://rodahal.nl
+www.013.nl
+www.paradiso.nl
+www.melkweg.nl
+www.doornroosje.nl
+http://tivoli.nl
+www.delamar.nl
+https://www.stadsschouwburgendevereeniging.nl
+www.dedoelen.nl/
+www.luxorlive.nl
+http://www.parktheater.nl
+http://www.de-oosterpoort.nl
+http://www.chasse.nl