Add hook to Printable.add_props.

This commit is contained in:
Neil Williams
2013-03-23 23:38:33 -07:00
parent 1994ce083f
commit 3520ea5389

View File

@@ -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