Esempio n. 1
0
def get_taxon_path(request):
    taxon_id = request.matchdict['id']

    taxons = Taxon.parent_taxons(taxon_id)
    path = [t.id for t in taxons]

    return {'success': True, 'path': path}
Esempio n. 2
0
def get_taxon_path(request):
    taxon_id = request.matchdict['id']

    taxons = Taxon.parent_taxons(taxon_id)
    path = [t.id for t in taxons]

    return {'success': True, 'path': path}
Esempio n. 3
0
def get_taxon(request):
    id = int(request.matchdict['id'])
    parent_taxons = Taxon.parent_taxons(id)
Esempio n. 4
0
def get_taxon(request):
    id = int(request.matchdict['id'])
    parent_taxons = Taxon.parent_taxons(id)