示例#1
0
文件: tq.py 项目: 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)
示例#2
0
文件: tq.py 项目: 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