def get_data_from_server_and_index_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 memcache.add("items", all_items, 60) taskqueue.add(url='/index/index',params={}) return all_items
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)