• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

allura


Commit MetaInfo

Revisionf823c65ea147162908012e06289505c5b633410a (tree)
Time2012-07-18 04:25:22
AuthorAnton Kasyanov <mind1master@gmai...>
CommiterCory Johns

Log Message

[#4481] ticket:101 added votes to ticket index

Change Summary

Incremental Difference

--- a/ForgeTracker/forgetracker/model/ticket.py
+++ b/ForgeTracker/forgetracker/model/ticket.py
@@ -276,8 +276,11 @@ class Ticket(VersionedArtifact, ActivityObject, VotableArtifact):
276276 milestone_s=self.milestone,
277277 status_s=self.status,
278278 text=self.description,
279- votes_i=self.votes,
280- snippet_s=self.summary)
279+ snippet_s=self.summary,
280+ votes_up_i=self.votes_up,
281+ votes_down_i=self.votes_down,
282+ votes_total_i=(self.votes_up-self.votes_down)
283+ )
281284 for k,v in self.custom_fields.iteritems():
282285 result[k + '_s'] = unicode(v)
283286 if self.reported_by:
--- a/ForgeTracker/forgetracker/widgets/ticket_search.py
+++ b/ForgeTracker/forgetracker/widgets/ticket_search.py
@@ -84,6 +84,8 @@ class SearchHelp(ffw.Lightbox):
8484 <li>User who created the ticket - reported_by_s</li>
8585 <li>Status of the ticket - status</li>
8686 <li>Title of the ticket - summary</li>
87+<li>Votes up/down of the ticket - votes_up/votes_down</li>
88+<li>Votes total of the ticket - votes_total</li>
8789 <li>Custom field - the field name with an underscore in front like _custom</li>
8890 </ul>
8991 <h2>Example searches</h2>