# HG changeset patch
# User Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
# Date 1240985963 -7200
#      Wed Apr 29 08:19:23 2009 +0200
# Node ID 40afa8f3ee52736fccea1524323c0cbab4d61533
# Parent  fdb0a0e38a6e053e5550ca4aeec340a32727e569
fix dc_description() API

dc_description must accept a 'format' optional parameter. Its default
value must be 'text/plain'. The implementation of dc_descripion
*must* consider this value.

diff --git a/entities.py b/entities.py
--- a/entities.py
+++ b/entities.py
@@ -20,9 +20,9 @@
     def dc_title(self):
         return self.title
 
-    def dc_description(self):
-        return self.printable_value('content')
-    
+    def dc_description(self, format='text/plain'):
+        return self.printable_value('content', format=format)
+
     ## calendar interfaces ####################################################
     @property
     def start(self):