# HG changeset patch
# User Arthur Lutz <arthur.lutz@logilab.fr>
# Date 1260348541 -3600
#      Wed Dec 09 09:49:01 2009 +0100
# Node ID bf68e8d1d3e75d57eef88e75e67c4694ae77226d
# Parent  18c69e7629d4a6d487aa130876a26b417f6674e8
[mq]: cw_3.6_in_hooks

diff --git a/hooks.py b/hooks.py
--- a/hooks.py
+++ b/hooks.py
@@ -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())