def _pop_interaction(self): collection = InteractionLog.get_collection() log = InteractionLog.get_interaction(self.user.visitor_id, collection) return log.pop(collection)
def _push_interaction(self, type, old_value): collection = InteractionLog.get_collection() log = InteractionLog.get_interaction(self.user.visitor_id, collection) log.push(type, old_value, collection)