コード例 #1
0
ファイル: main.py プロジェクト: psalty/photolog_gae
def photolog_stitched_list(handler):
        wv = photolog_list_all_woven_from(handler.request.get('pkey'))
        
        template_values = {
            'grapes' : wv,
        }
        path = os.path.join(os.path.dirname(__file__),TEMPLATE_DIR,MY_STITCHED_NODE)
        handler.response.out.write(template.render(path, template_values).decode('utf-8'))
コード例 #2
0
ファイル: CVGrapeMap.py プロジェクト: psalty/photolog_gae
def photolog_cvmap_list_next_level(handler):
        wv = photolog_list_all_woven_from(handler.request.get('pkey'))
        
        nodelist = list()
        for node in wv:
            logging.debug(node.to_node.key)
            nodelist.append(str(node.to_node.key))

        logging.debug(simplejson.dumps(nodelist))
        handler.response.out.write(simplejson.dumps(nodelist))