Beispiel #1
0
Datei: tq.py Projekt: adajw/Laura
	def post(self):
		key = self.request.get('wavelet')
		self.blip_id = self.request.get('blip_id')
		self.dbw, fullwavelet = models.load_wavelet_key(key)
		parent_id = self.thread(fullwavelet.root_thread, None)
		if not parent_id:
			logging.info("Hopeless case, parent no longer exists")
		if parent_id == "root":
			parent_id = None
		parent = models.Fingerprint.all().filter('wavelet =',
			self.dbw).filter('blip =',parent_id).fetch(1)[0]
		blip = fullwavelet.blips[self.blip_id]
		f = models.finger_blip(blip, parent, wavelet=self.dbw)
		models.insert(f, True)
Beispiel #2
0
Datei: tq.py Projekt: adajw/Laura
	def post(self):
		key = self.request.get('key')
		self.dbw, fullwavelet = models.load_wavelet_key(key)
		logging.info(str(len(fullwavelet.blips))+" blips")
		self.thread(fullwavelet.root_thread, None)