From 3520ea53896bea61bc0e891fa366b0ae34f543e3 Mon Sep 17 00:00:00 2001 From: Neil Williams Date: Sat, 23 Mar 2013 23:38:33 -0700 Subject: [PATCH] Add hook to Printable.add_props. --- r2/r2/models/printable.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/r2/r2/models/printable.py b/r2/r2/models/printable.py index aeddad0d8..b134be959 100755 --- a/r2/r2/models/printable.py +++ b/r2/r2/models/printable.py @@ -22,6 +22,9 @@ from pylons import c, request from r2.lib.strings import Score +from r2.lib import hooks + + class Printable(object): show_spam = False show_reports = False @@ -66,6 +69,8 @@ class Printable(object): ["scoredislikes", "scoreunvoted", "scorelikes"]) + hooks.get_hook("add_props").call(items=wrapped) + @property def permalink(self, *a, **kw): raise NotImplementedError