コード例 #1
0
 def __unicode__(self):
     if self.up_or_down == "U":
         return show_name(
             self.thumber) + "thumbs up on " + self.designidea.title
     else:
         return show_name(
             self.thumber) + "thumbs down on " + self.designidea.title
コード例 #2
0
 def __unicode__(self):
     return _(
         "%(commentor)s's comment on %(answerer_name)s's answer to the question: '%(question_title)s'"
     ) % {
         "commentor": show_name(self.creator),
         "answerer_name": show_name(self.answer.answerer),
         "question_title": self.answer.question.question_title
     }
コード例 #3
0
 def __unicode__(self):
     return _(
         "%(tipper_name)s tips %(answerer_name)s %(amount)d points for an answer to the question '%(question_title)s'"
     ) % {
         "tipper_name": show_name(self.tipper),
         "answerer_name": show_name(self.answer.answerer),
         "amount": self.amount,
         "question_title": self.answer.question.question_title,
     }
コード例 #4
0
 def __unicode__(self):
     return _(
         "%(rater_name)s gives %(receiver_name)s a %(rating)s rating on question '%(question_title)s'"
     ) % {
         "rater_name": show_name(self.rater),
         "receiver_name": show_name(self.receiver),
         "rating": self.rating,
         "question_title": self.question.question_title,
     }
コード例 #5
0
 def __unicode__(self):
     if self.type == "Q":
         if self.up_or_down == "U":
             return _(
                 "%(thumber_name)s thumbs up on %(asker_name)s's question: '%(question_title)s'"
             ) % {
                 "thumber_name": show_name(self.thumber),
                 "asker_name": show_name(self.question.asker),
                 "question_title": self.question.question_title
             }
         else:
             return _(
                 "%(thumber_name)s thumbs down on %(asker_name)s's question: '%(question_title)s'"
             ) % {
                 "thumber_name": show_name(self.thumber),
                 "asker_name": show_name(self.question.asker),
                 "question_title": self.question.question_title
             }
     else:
         if self.up_or_down == "U":
             return _(
                 "%(thumber_name)s thumbs up on %(answerer_name)s's answer to the question: '%(question_title)s'"
             ) % {
                 "thumber_name": show_name(self.thumber),
                 "answerer_name": show_name(self.answer.answerer),
                 "question_title": self.answer.question.question_title
             }
         else:
             return _(
                 "%(thumber_name)s thumbs down on %(answerer_name)s's answer to the question: '%(question_title)s'"
             ) % {
                 "thumber_name": show_name(self.thumber),
                 "answerer_name": show_name(self.answer.answerer),
                 "question_title": self.answer.question.question_title
             }
コード例 #6
0
	def __unicode__(self):
		return _("Deal: %(buyer)s spent %(amount)d on %(product)s at %(time)s") % {
			"buyer": show_name(self.bid.bidder),
			"amount": self.bid.amount,
			"product": self.bid.product.name,
			"time": self.time_string_l()
		}
コード例 #7
0
	def __unicode__(self):
		return _("%(bidder_name)s bids %(amount)d points on '%(product)s' at %(time)s") % {
			"bidder_name": show_name(self.bidder),
			"amount": self.amount,
			"product": self.product.name,
			"time": self.time_string_l()
		}
コード例 #8
0
	def seller_name(self):
		return show_name(self.seller)
コード例 #9
0
	def display_name(self):
		if self.anonymous:
			return _("An Egghead")
		else:
			return show_name(self.bidder)
コード例 #10
0
 def __unicode__(self):
     return "%s donated %d points on %s" % (show_name(
         self.donater), self.amount, self.designidea)
コード例 #11
0
 def tipper_name(self):
     return show_name(self.tipper)
コード例 #12
0
 def __unicode__(self):
     return _(
         "%(commentor)s's comment on question: '%(question_title)s'") % {
             "commentor": show_name(self.creator),
             "question_title": self.question.question_title
         }
コード例 #13
0
 def __unicode__(self):
     return show_name(self.adder) + " : " + self.question.question_title