Пример #1
0
	def post(self):
		corekey = self.request.get('key')
		text = self.request.get('reply')
		parent_f = models.get_response_by_corekey(corekey).response_to
		laura = makerobot.make_authorized()
		dbw = parent_f.wavelet	
		wavelet = laura.fetch_wavelet(dbw.wave_id, wavelet_id=dbw.wavelet_id)

		reply = wavelet.blips[parent_f.blip].continue_thread()
		reply.append_markup(text)
		laura.submit(wavelet)
		models.insert(models.finger_blip(reply, parent_f, dbw), False)
Пример #2
0
def load_wavelet(wave_id, wavelet_id):
	robot = makerobot.make_authorized()
	return robot.fetch_wavelet(wave_id, wavelet_id=wavelet_id)