Commits

John Costa committed 9c8f16d

try decorator

  • Participants
  • Parent commits 9ffa7bc

Comments (0)

Files changed (1)

File voting/templatetags/voting_tags.py

         context[self.context_var] = dictionary.get(item.id, None)
         return ''
 
+@register.tag('score_for_object', do_score_for_object)
 def do_score_for_object(parser, token):
     """
     Retrieves the total score for an object and the number of votes
         raise template.TemplateSyntaxError("fourth argument to '%s' tag must be 'as'" % bits[0])
     return DictEntryForItemNode(bits[1], bits[3], bits[5])
 
-register.tag('score_for_object', do_score_for_object)
-register.tag('scores_for_objects', do_scores_for_objects)
-register.tag('vote_by_user', do_vote_by_user)
-register.tag('votes_by_user', do_votes_by_user)
-register.tag('dict_entry_for_item', do_dict_entry_for_item)
+#register.tag('score_for_object', do_score_for_object)
+#register.tag('scores_for_objects', do_scores_for_objects)
+#register.tag('vote_by_user', do_vote_by_user)
+#register.tag('votes_by_user', do_votes_by_user)
+#register.tag('dict_entry_for_item', do_dict_entry_for_item)
 
 # Simple Tags