Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Add hook to Printable.add_props.
Browse files Browse the repository at this point in the history
  • Loading branch information
spladug committed Mar 31, 2013
1 parent 1994ce0 commit 3520ea5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions r2/r2/models/printable.py
Expand Up @@ -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
Expand Down Expand Up @@ -66,6 +69,8 @@ def add_props(cls, user, wrapped):
["scoredislikes", "scoreunvoted",
"scorelikes"])

hooks.get_hook("add_props").call(items=wrapped)

@property
def permalink(self, *a, **kw):
raise NotImplementedError
Expand Down

0 comments on commit 3520ea5

Please sign in to comment.