# HG changeset patch # User Ariane Broermann # Date 1396592261 -7200 # Node ID c7fa55d11493baf32543ca5b67233b165da48a02 # Parent dac81e04d628d9f59e87f13d466b627aad70e0e0# Parent e209a6446e8871905976a8010eeaa7850d9de450 Merged. diff -r dac81e04d628 -r c7fa55d11493 newsfeed.py --- a/newsfeed.py Fri Apr 04 08:17:19 2014 +0200 +++ b/newsfeed.py Fri Apr 04 08:17:41 2014 +0200 @@ -43,11 +43,11 @@ postcount += 1 content = content.encode('utf8') oa("
  • ") + oa('
    ') if len(content) >= max_length: oa(content[:(max_length-opacity75)]) oa("") - #oa("") oa('') oa(content[(max_length-opacity75):(max_length-ocacity50)]) oa('') @@ -57,25 +57,19 @@ else: oa(content) - oa('
    ') actor = item["actor"] - #oa("
    more...") - oa('') - 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"