# HG changeset patch # User Sascha L. Teichmann # Date 1396535409 -7200 # Node ID c791f4e9be390c77df9ec944305079dd2cf30ff3 # Parent d3291e4150a21a83bc600fad0c08fdce0a5496ba More tweaks in newsfeed output. diff -r d3291e4150a2 -r c791f4e9be39 newsfeed.py --- a/newsfeed.py Thu Apr 03 16:20:36 2014 +0200 +++ b/newsfeed.py Thu Apr 03 16:30:09 2014 +0200 @@ -47,7 +47,6 @@ if len(content) >= max_length: oa(content[:(max_length-opacity75)]) oa("") - #oa("") oa('') oa(content[(max_length-opacity75):(max_length-ocacity50)]) oa('') @@ -59,24 +58,17 @@ oa('
') actor = item["actor"] - #oa("
more...") - oa(''+actor["displayName"]+'') - #oa(item["content"]) + oa('
') + oa('%s' % (actor["url"], actor["displayName"]+'')) if verb == "share": - oa(' via '+item["object"]["author"]["displayName"]+'
') - #if verb == "share": - # oa(' via '+item["object"]["author"]["displayName"]+'') + oa(' via %s
' % (item["object"]["url"], item["object"]["author"]["displayName"])) - # 2014-01-03T10:30:02Z date = time.strptime(item["updated"],"%Y-%m-%dT%H:%M:%SZ") oa(time.strftime(" %d.%m.%Y um %H:%M:%S", date)) - oa('') - oa('
') + oa('
') oa("") oa("") -#oa('mehr von '+data["author"]["displayName"]+'' ) body = ''.join(output) print "Content-Type: text/html;charset=utf-8"