# HG changeset patch # User Mathias Gebbe # Date 1394470661 -3600 # Node ID 8cc0036041cf4807829ca9eb4f63b1b4df660a26 # Parent 5541d758f62aa25458471cdd2fac5675540796d9 set URL, removed index.psp diff -r 5541d758f62a -r 8cc0036041cf feed.html --- a/feed.html Mon Mar 10 17:47:07 2014 +0100 +++ b/feed.html Mon Mar 10 17:57:41 2014 +0100 @@ -1,6 +1,6 @@ diff -r 5541d758f62a -r 8cc0036041cf index.psp --- a/index.psp Mon Mar 10 17:47:07 2014 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,81 +0,0 @@ -<% -import requests -import urllib2 -import simplejson -import time - - -# SETTINGS - -tmpl = "/var/lib/gforge/chroot/home/groups/dive4elements/htdocs/index.html" -url = "https://io.intevation.de/api/user/dive4elements/feed/public" -#url = "https://io.intevation.de/api/user/Intevation/feed/public" -verb = "share" # post or share -max_posts = 5 -max_length = 300 -opacity75 = 20 -ocacity50 = 10 - -# END SETTINGS - -with open (tmpl, "r") as myfile: - template=myfile.read() - -req.content_type = "text/html; charset=UTF-8" -output = [] - -postcount = 1 - -output.append( - '") -#output.append('mehr von '+data["author"]["displayName"]+'' ) - -str = ''.join(output) -template = template.replace('{newsfeed}',str) - -req.write(template) -%> diff -r 5541d758f62a -r 8cc0036041cf newsfeed.py --- a/newsfeed.py Mon Mar 10 17:47:07 2014 +0100 +++ b/newsfeed.py Mon Mar 10 17:57:41 2014 +0100 @@ -7,7 +7,7 @@ # SETTINGS -url = "http://goldenrod.rgb/api/user/dive4elements/feed/public" +url = "http://io.intevation.de/api/user/dive4elements/feed/public" verb = "share" # post or share max_posts = 5 max_length = 350