views.py
def listClassCluster():
    """This function asks the db for clusters' classes list"""
    if request.is_xhr and request.method=="POST":
        try:
            result, cursorListClassCluster = managedb.listClassClusterDB()
            if (result == False):
                print("clusters' classes: there aren't results")
                return json.dumps({"result": "empty"})
            else:
                print("clusters' classes: there are results")
                cursorListClassClusterJSON = mytools.modifyClassClusterJSON(cursorListClassCluster)
                return cursorListClassClusterJSON
        except Exception as e:
            print("exception error DB", str(e))
            return json.dumps({"result": "error"})
This function asks the db for clusters' classes list
This function asks the db for clusters' classes list
This function asks the db for clusters ' classes list
def listClassCluster():
    if request.is_xhr and request.method=="POST":
        try:
            result, cursorListClassCluster = managedb.listClassClusterDB()
            if (result == False):
                print("clusters' classes: there aren't results")
                return json.dumps({"result": "empty"})
            else:
                print("clusters' classes: there are results")
                cursorListClassClusterJSON = mytools.modifyClassClusterJSON(cursorListClassCluster)
                return cursorListClassClusterJSON
        except Exception as e:
            print("exception error DB", str(e))
            return json.dumps({"result": "error"})
def listClassCluster ( ) : if request . is_xhr and request . method == "POST" : try : result , cursorListClassCluster = managedb . listClassClusterDB ( ) if ( result == False ) : print ( "clusters' classes: there aren't results" ) return json . dumps ( { "result" : "empty" } ) else : print ( "clusters' classes: there are results" ) cursorListClassClusterJSON = mytools . modifyClassClusterJSON ( cursorListClassCluster ) return cursorListClassClusterJSON except Exception as e : print ( "exception error DB" , str ( e ) ) return json . dumps ( { "result" : "error" } )
This function asks the db for clusters' classes list
This function asks the db for clusters ' classes list
"""This function asks the db for clusters' classes list"""