# HG changeset patch # User Mathias Gebbe # Date 1394470027 -3600 # Node ID 5541d758f62aa25458471cdd2fac5675540796d9 # Parent 3fe0a15a02d0e73e47a505ccd6426ca9c50e3662 Remove PSP, Added SSI, Added newsfeed.py for include diff -r 3fe0a15a02d0 -r 5541d758f62a .htaccess --- a/.htaccess Mon Mar 10 16:31:19 2014 +0100 +++ b/.htaccess Mon Mar 10 17:47:07 2014 +0100 @@ -1,14 +1,4 @@ # Activate serversite includes. -AddOutputFilter INCLUDES .shtml +Options +Includes +ExecCGI XBitHack on - -# Activate "Python Server Pages" -AddHandler mod_python .psp -PythonHandler mod_python.psp - AddDefaultCharset UTF-8 -DirectoryIndex index.psp - -# Nobody should see the index.html -RewriteEngine On -RewriteRule ^index\.html$ $1/index.psp [R] diff -r 3fe0a15a02d0 -r 5541d758f62a feed.html --- a/feed.html Mon Mar 10 16:31:19 2014 +0100 +++ b/feed.html Mon Mar 10 17:47:07 2014 +0100 @@ -1,6 +1,6 @@ diff -r 3fe0a15a02d0 -r 5541d758f62a newsfeed.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/newsfeed.py Mon Mar 10 17:47:07 2014 +0100 @@ -0,0 +1,75 @@ +#!/usr/bin/env python + +import urllib2 +import simplejson +import time +import sys + +# SETTINGS + +url = "http://goldenrod.rgb/api/user/dive4elements/feed/public" +verb = "share" # post or share +max_posts = 5 +max_length = 350 +opacity75 = 20 +ocacity50 = 10 + +# END SETTINGS + +output = [] + +postcount = 1 + +output.append( + '") +#output.append('mehr von '+data["author"]["displayName"]+'' ) +s = ''.join(output) + +print "Content-Type: text/html;charset=utf-8" +print +print s +