示例#1
0
文件: talk.py 项目: masyl/wrook
	def touch_up(self, childItem):
		if childItem:
			if childItem.__class__.__name__ == "Reply":
				cachetree.touch("%s-topicsWithReplies" % self.key())
			elif childItem.__class__.__name__ == "Topic":
				cachetree.touch("%s-topicsWithReplies" % self.key())
				cachetree.touch("%s-topics" % self.key())
			super(Topicable, self).touch_up(childItem)
示例#2
0
文件: talk.py 项目: masyl/wrook
	def touch_up(self, childItem):
		if childItem:
			if childItem.__class__.__name__ == "Reply":
				cachetree.touch("%s-replies" % self.key())
			super(Replyable, self).touch_up(childItem)