John Costa avatar John Costa committed fb1e326

remove change from template tags

Comments (0)

Files changed (1)

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
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.