merge
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Thu, 19 Apr 2012 13:59:50 +0200
changeset 278 bb889339826f
parent 268 955a7e998bc1 (current diff)
parent 277 3e38abedf17d (diff)
child 279 acc20451d14b
merge
--- a/.hgtags	Fri Feb 03 12:50:27 2012 +0100
+++ b/.hgtags	Thu Apr 19 13:59:50 2012 +0200
@@ -22,3 +22,7 @@
 133ed70ae9207012c049105be280d5bae3445de4 cubicweb-blog-debian-version-1.9.0-1
 8cb86b85a22e3dde93cebe5a2e8e6238c801454d cubicweb-blog-version-1.9.1
 a519d3247ab4c40b606149c43a638b6dcb5bafd7 cubicweb-blog-debian-version-1.9.1-1
+52cf0819af9afb56150276f994a093084ee29f21 cubicweb-blog-version-1.9.2
+2197fbf08bf08cf4acf75f27ece9713f2f46edc6 cubicweb-blog-debian-version-1.9.2-1
+ef07b3e39a1f35854e7679a958798a97e21a2cf3 cubicweb-blog-version-1.9.3
+2cd1f06eaf2a2883d95868566aa6630357ca6144 cubicweb-blog-debian-version-1.9.3-1
--- a/__pkginfo__.py	Fri Feb 03 12:50:27 2012 +0100
+++ b/__pkginfo__.py	Thu Apr 19 13:59:50 2012 +0200
@@ -4,7 +4,7 @@
 modname = 'blog'
 distname = "cubicweb-%s" % modname
 
-numversion = (1, 9, 1)
+numversion = (1, 9, 3)
 version = '.'.join(str(num) for num in numversion)
 
 license = 'LGPL'
--- a/debian/changelog	Fri Feb 03 12:50:27 2012 +0100
+++ b/debian/changelog	Thu Apr 19 13:59:50 2012 +0200
@@ -1,3 +1,15 @@
+cubicweb-blog (1.9.3-1) unstable; urgency=low
+
+  * new upstream release
+
+ -- David Douard <david.douard@logilab.fr>  Fri, 02 Mar 2012 11:41:23 +0100
+
+cubicweb-blog (1.9.2-1) unstable; urgency=low
+
+  * new upstream release
+
+ -- David Douard <david.douard@logilab.fr>  Fri, 03 Feb 2012 15:26:48 +0100
+
 cubicweb-blog (1.9.1-1) unstable; urgency=low
 
   * new upstream release
--- a/entities.py	Fri Feb 03 12:50:27 2012 +0100
+++ b/entities.py	Thu Apr 19 13:59:50 2012 +0200
@@ -48,10 +48,13 @@
     def dc_description(self, format='text/plain'):
         return self.printable_value('content', format=format)
 
-    def dc_date(self, date_format=None):# XXX default to ISO 8601 ?
-        """return latest modification date of this entity"""
-        return self._cw.format_date(self.creation_date, date_format=date_format)
-
+    def dc_date(self, date_format=None):
+        dc_date = self.creation_date
+        for tr_info in self.reverse_wf_info_for:
+            if tr_info.new_state.name == 'published':
+                dc_date = tr_info.creation_date
+                break
+        return self._cw.format_date(dc_date, date_format=date_format)
 
 class BlogEntryICalendarableAdapter(EntityAdapter):
     __regid__ = 'ICalendarable'