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)
def touch_up(self, childItem): if childItem: if childItem.__class__.__name__ == "Reply": cachetree.touch("%s-replies" % self.key()) super(Replyable, self).touch_up(childItem)