The Assimilation Project  based on Assimilation version
hello Namespace Reference


def hello_world ()
def query_meta (queryname)
def doquery (queryname)
def setup (dbhost='localhost', dbport=7474, dburl=None, querypath=None)


dictionary allqueries = {}
 app = Flask(__name__)

Function Documentation

def hello.doquery (   queryname)
Prototype code for executing a particular query.
The error cases are detected, but not handled correctly yet.
They all return apparent success, just no JSON.

Definition at line 59 of file

def hello.hello_world ( )

Definition at line 48 of file

def hello.query_meta (   queryname)
Dummy code for returning the metadata for a particular query
- that doesn't do anything yet.

Definition at line 53 of file

def hello.setup (   dbhost = 'localhost',
  dbport = 7474,
  dburl = None,
  querypath = None 
Program to set up for running our REST server.
We do these things:
    - Attach to the database
    - Initialize our type objects so things like ClientQuery will work...
    - Load the queries into the database from flat files
        Not sure if doing this here makes the best sense, but it
        works, and currently we're the only one who cares about them
        so it seems reasonable -- at the moment ;-)
        Also we're most likely to iterate changing on those relating to the
        REST server, so fixing them just by restarting the REST server seems
        to make a lot of sense (at the moment)
    - Remember the set of queries in the 'allqueries' hash table

Definition at line 79 of file

Variable Documentation

dictionary hello.allqueries = {}

Definition at line 43 of file = Flask(__name__)

Definition at line 45 of file


Definition at line 117 of file


Definition at line 115 of file


Definition at line 116 of file


Definition at line 115 of file


Definition at line 115 of file


Definition at line 115 of file