Skip to content.

Etria Lists

 

[quills-dev] [Collective-checkins] r33943 - Quills/trunk

quills-dev at lists.etria.com quills-dev at lists.etria.com
Mon Nov 20 19:13:55 UTC 2006


Author: maurits
Date: Mon Nov 20 19:13:54 2006
New Revision: 33943

Modified:
   Quills/trunk/syndication.py
Log:
Add getXhtml() to accurately implement IFeedEntry again.


Modified: Quills/trunk/syndication.py
==============================================================================
--- Quills/trunk/syndication.py	(original)
+++ Quills/trunk/syndication.py	Mon Nov 20 19:13:54 2006
@@ -105,6 +105,12 @@
 
     implements(IFeedEntry)
 
+    def getXhtml(self):
+        if self.context.text.mimetype == 'text/html':
+            return self.context.getText()
+        else:
+            return None
+
     def getBody(self):
         """See IFeedEntry.
         """

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Collective-checkins mailing list
Collective-checkins at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/collective-checkins



More information about the quills-dev mailing list