S'identifier - S'inscrire - Contact

CommunityWiki
Jam session in wikilandia

rss2email

Source :

A long time ago, I used rss2email to subscribe to blogs and wikis. Here’s a patch to an ancient version to support ModWiki?/WikiModule. I assume it’ll no longer apply cleanly.*** rss2email.py 2005/01/04 03:27:33 1.1 --- rss2email.py 2005/01/04 16:38:30 *************** *** 232,237 **** --- 232,248 return DEFAULT_FROM + def getWikiInfo(feed, entry): + """Get the wiki namespace info.""" + result = '' + if entry.get('wiki_diff', []): + result += "\nDiff: " + entry.wiki_diff + if entry.get('wiki_history', []): + result += "\nHistory: " + entry.wiki_history + if entry.get('dc_contributor', []): + result += "\nContributor: " + entry.dc_contributor + return result + ### Simple Database of Feeds ### class Feed: *************** *** 400,406 **** "\n\n</body></html>") else: message += "text/plain" ! content = unu(content).strip() + "\n\nURL: "+link message += '; charset="utf-8"\n\n' + content + "\n" --- 411,420 ---- "\n\n</body></html>") else: message += "text/plain" ! content = (unu(content).strip() ! + "\n\nURL: " + link ! + getWikiInfo(r.feed, entry)) ! message += '; charset="utf-8"\n\n' + content + "\n"

le 15.06.08 à 10:23 dans Mind - Version imprimable
Article précédent - Commenter - Article suivant -