Ejemplo n.º 1
0
def updatedata(ListOfLinks):
	""" Updates the keywords and title in the table in datastore."""
	for x in ListOfLinks:
		x = dsfunc.extractInfo(x)
		updatekeyword(x)
		x.flag = 1
		x.put()
Ejemplo n.º 2
0
def makedoc(link):
	Link = Links()
	Link = dsfunc.extractInfo(link)
	Link.link = link
	document = search.Document(
	fields = [
		search.TextField(name='link',value=str(Link.link)),
		search.TextField(name='title',value=str(Link.pagetitle)),
		search.TextField(name='description',value=str(Link.desc))
	])
	return document