예제 #1
0
파일: emap_browser.py 프로젝트: mgijax/pwi
def emapaTreeChildrenJson(parentId):
    """
    Fetch the children JSON data for the EMAPA 
        parent with the given parentId
    """
    
    term = vocterm_service.get_by_primary_id(parentId)
    
    tree_data = TreeView.buildChildNodes(term)
    return json.dumps(tree_data)
예제 #2
0
def celltypeTreeChildrenJson(parentId):
    """
    Fetch the children JSON data for the Cell Type
        parent with the given parentId
    """

    term = vocterm_service.get_by_primary_id(parentId)

    tree_data = TreeView.buildChildNodes(term)
    return json.dumps(tree_data)
예제 #3
0
파일: emap_browser.py 프로젝트: mgijax/pwi
def emapaTreeJson(id):
    """
    Fetch the initial JSON data for the EMAPA 
        with the given id
    """
    
    term = vocterm_service.get_by_primary_id(id)
    
    tree_data = TreeView.buildTreeView(term)
    
    return json.dumps(tree_data)
예제 #4
0
def celltypeTreeJson(id):
    """
    Fetch the initial JSON data for the Cell Type
        with the given id
    """

    term = vocterm_service.get_by_primary_id(id)

    tree_data = TreeView.buildTreeView(term)

    return json.dumps(tree_data)