Example #1
0
 def get(self):
     term_to_index=self.request.get('t')
     link_to_index=self.request.get('l')
     item=Item()
     item.title=term_to_index
     item.link=link_to_index
     index_item_and_store_item(item)
     template_values = {}
     path = os.path.join(os.path.dirname(__file__),'templates/main.html')
     self.response.out.write(template.render(path,template_values))
Example #2
0
 def post(self):
     all_items = memcache.get("items")
     if all_items:
         for item in all_items:
             index_item_and_store_item(item)
Example #3
0
 def get_data_from_server_and_store_it(self,text):
         items_discogs = itemsearcher_discogs.get_items(text)
         items_todo_coleccion = itemsearcher_todocoleccion.get_items(text)
         all_items = items_discogs + items_todo_coleccion
         for item in all_items:
             index_item_and_store_item(item)