Beispiel #1
0
Datei: tq.py Projekt: adajw/Laura
	def post(self):
		''' Get a specific fingerprint by key, and insert it'''
		# get blip key
		key = self.request.get('key')
		f = models.get(key)
		models.insert(f, False)
		for i in f.fingerprint_set:
			# process children
			doitlater.insert_blip(i)
Beispiel #2
0
Datei: tq.py Projekt: adajw/Laura
	def thread(self, thread, parent):
		cparent = parent
		for blip in thread.blips:
			f = models.finger_blip(blip, 
				cparent, 
				wavelet=self.dbw)
			if cparent == None:
				# root blip
				doitlater.insert_blip(f)
			for rt in blip.reply_threads:
				self.thread(rt, f)
			cparent = f