Mercurial > dive4elements > website
comparison newsfeed.py @ 137:d3291e4150a2
Another br after items in feed.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 03 Apr 2014 16:20:36 +0200 |
parents | 9238e6fff8da |
children | c791f4e9be39 |
comparison
equal
deleted
inserted
replaced
136:9238e6fff8da | 137:d3291e4150a2 |
---|---|
58 oa(content) | 58 oa(content) |
59 | 59 |
60 oa('<br>') | 60 oa('<br>') |
61 actor = item["actor"] | 61 actor = item["actor"] |
62 #oa("<a href="+item["object"]["links"]["self"]["href"]+">more...</a>") | 62 #oa("<a href="+item["object"]["links"]["self"]["href"]+">more...</a>") |
63 oa('<span style="font-size:smaller; margin-bottom:1em">') | 63 oa('<span style="font-size:smaller>') |
64 oa('<a href="'+actor["url"]+'">'+actor["displayName"]+'</a>') | 64 oa('<a href="'+actor["url"]+'">'+actor["displayName"]+'</a>') |
65 #oa(item["content"]) | 65 #oa(item["content"]) |
66 if verb == "share": | 66 if verb == "share": |
67 oa(' via <a href="'+item["object"]["url"]+'">'+item["object"]["author"]["displayName"]+'</a><br/>') | 67 oa(' via <a href="'+item["object"]["url"]+'">'+item["object"]["author"]["displayName"]+'</a><br>') |
68 #if verb == "share": | 68 #if verb == "share": |
69 # oa(' via <a href="'+item["object"]["author"]["url"]+'">'+item["object"]["author"]["displayName"]+'</a>') | 69 # oa(' via <a href="'+item["object"]["author"]["url"]+'">'+item["object"]["author"]["displayName"]+'</a>') |
70 | 70 |
71 # 2014-01-03T10:30:02Z | 71 # 2014-01-03T10:30:02Z |
72 date = time.strptime(item["updated"],"%Y-%m-%dT%H:%M:%SZ") | 72 date = time.strptime(item["updated"],"%Y-%m-%dT%H:%M:%SZ") |
73 oa(time.strftime(" %d.%m.%Y um %H:%M:%S", date)) | 73 oa(time.strftime(" %d.%m.%Y um %H:%M:%S", date)) |
74 oa('</span>') | 74 oa('</span>') |
75 oa('<br>') | |
75 oa("</li>") | 76 oa("</li>") |
76 | 77 |
77 oa("</ul>") | 78 oa("</ul>") |
78 #oa('<a href="'+data["author"]["url"]+'">mehr von '+data["author"]["displayName"]+'</a>' ) | 79 #oa('<a href="'+data["author"]["url"]+'">mehr von '+data["author"]["displayName"]+'</a>' ) |
79 body = ''.join(output) | 80 body = ''.join(output) |