The Assimilation Project  based on Assimilation version 1.1.7.1474836767
hello Namespace Reference

Functions

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

Variables

dictionary allqueries = {}
 
 app = Flask(__name__)
 
 io
 
 None
 
 readonly
 
 True
 
 use_network
 
 querypath
 
 debug
 

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 hello.py.

def hello.hello_world ( )

Definition at line 48 of file hello.py.

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 hello.py.

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 hello.py.

Variable Documentation

dictionary hello.allqueries = {}

Definition at line 43 of file hello.py.

hello.app = Flask(__name__)

Definition at line 45 of file hello.py.

hello.debug

Definition at line 117 of file hello.py.

hello.None

Definition at line 115 of file hello.py.

hello.querypath

Definition at line 116 of file hello.py.

hello.readonly

Definition at line 115 of file hello.py.

hello.True

Definition at line 115 of file hello.py.

hello.use_network

Definition at line 115 of file hello.py.