示例#1
0
文件: views.py 项目: rlanger/muselon
	def on_description_post(self, data):
		print ("on description post")
		print ("NEW POST: ", data) 

		comment = Comment(0, data["text"], data["charId"])
		comment.save()
		self.broadcast_event("updateComments")
示例#2
0
	def on_description_post(self, data):
		print ("on description post")
		print ("NEW POST: ", data) 

		comment = Comment(0, data["text"], data["charId"])
		comment.save()
		self.broadcast_event("updateComments")
示例#3
0
文件: views.py 项目: rlanger/muselon
	def on_dialogue_post(self, data):
		print ("on dialogue post")
		print ("NEW POST: ", data)
		comment = Comment(1, data["text"], data["charId"]) # and icon
		comment.save()
		self.broadcast_event("updateComments")
示例#4
0
	def on_dialogue_post(self, data):
		print ("on dialogue post")
		print ("NEW POST: ", data)
		comment = Comment(1, data["text"], data["charId"]) # and icon
		comment.save()
		self.broadcast_event("updateComments")