[mq]: cw_3.6_in_hooks
authorArthur Lutz <arthur.lutz@logilab.fr>
Wed, 09 Dec 2009 09:49:01 +0100
changeset 149 bf68e8d1d3e7
parent 148 18c69e7629d4
child 150 fbd643f1833c
[mq]: cw_3.6_in_hooks
hooks.py
--- a/hooks.py	Tue Dec 08 18:57:54 2009 +0100
+++ b/hooks.py	Wed Dec 09 09:49:01 2009 +0100
@@ -7,6 +7,6 @@
     content_attr = 'content'
 
     def subject(self):
-        entity = self.entity(0)
-        return '[%s] %s' % (self.config.appid, entity.dc_title())
+        entity = self.cw_rset.get_entity(0, 0)
+        return '[%s] %s' % (self._cw.vreg.config.appid, entity.dc_title())