Commit 10a904b6 authored by Stefan Müller's avatar Stefan Müller

Documentatio.

parent 293309d2
/*
!/code/
!.gitignore
!glosses.xml
!LICENSE.md
!README.md
/code/shell/
......
# Licensed under http://www.apache.org/licenses/LICENSE-2.0
# Attribution notice: by Stefan Müller in 2013 ff. (© http://badw.de)
'''
This module is the core and controller of the application at hand.
Its installation requirements and version requirements are listed
in the file “requirements.txt” next to this module. You can start
the system by executing this module with a Python interpreter and
with one or more arguments – each of which is an absolute path to
a file containing some obligatory and, as far as required by your
adaptation, some custom configuration data. An example for a call
to execute the module on localhost is:
:shell:`python /local/app/code/python/exemplar/geist.py "/local/app/config.ini" "/local/app/config_localhost.ini"`
The example must be adapted according to the syntax rules of your
shell and the locations of the specified files! – Another example
executes the module on a server, naming a different second file:
:shell:`python /local/app/code/python/exemplar/geist.py "/local/app/config.ini" "/local/app/config_server_80.ini"`
This module is the core and controller of the application at hand. – Its
installation requirements (besides Python itself) are listed in the file
“./requirements.txt”. – You can start this application by executing this
module with a Python interpreter, passing one or more arguments, each of
which is an absolute path to a file containing the basic data to run the
application: e.g. paths to key files or to content folders and any other
configuration. – Here is an example for a call to execute this module on
localhost:
python /local/app/code/python/exemplar/geist.py "/local/app/config.ini" "/local/app/config_localhost.ini"
The example must be adapted to the syntax rules of the shell you use and
to the real locations of the files you specify. – Here is an example for
running the application on a server, specifying a different second file:
python /local/app/code/python/exemplar/geist.py "/local/app/config.ini" "/local/app/config_server_80.ini"
The module “./gehalt.py” is the model, containing the code for accessing
and processing the backend data: from the most basic data to the content
of the application itself.
The folder “./gestalt” is the view, containing the templates to generate
the HTML or XML of the response.
'''
import json
try: import regex as re
......
# Licensed under http://www.apache.org/licenses/LICENSE-2.0
# Attribution notice: by Stefan Müller in 2013 ff. (© http://badw.de)
'''
This module is the core and controller of the application at hand.
Its installation requirements and version requirements are listed
in the file “requirements.txt” next to this module. You can start
the system by executing this module with a Python interpreter and
with one or more arguments – each of which is an absolute path to
a file containing some obligatory and, as far as required by your
adaptation, some custom configuration data. An example for a call
to execute the module on localhost is:
:shell:`python /local/app/code/python/exemplar/geist.py "/local/app/config.ini" "/local/app/config_localhost.ini"`
The example must be adapted according to the syntax rules of your
shell and the locations of the specified files! – Another example
executes the module on a server, naming a different second file:
:shell:`python /local/app/code/python/exemplar/geist.py "/local/app/config.ini" "/local/app/config_server_80.ini"`
This module is the core and controller of the application at hand. – Its
installation requirements (besides Python itself) are listed in the file
“./requirements.txt”. – You can start this application by executing this
module with a Python interpreter, passing one or more arguments, each of
which is an absolute path to a file containing the basic data to run the
application: e.g. paths to key files or to content folders and any other
configuration. – Here is an example for a call to execute this module on
localhost:
python /local/app/code/python/exemplar/geist.py "/local/app/config.ini" "/local/app/config_localhost.ini"
The example must be adapted to the syntax rules of the shell you use and
to the real locations of the files you specify. – Here is an example for
running the application on a server, specifying a different second file:
python /local/app/code/python/exemplar/geist.py "/local/app/config.ini" "/local/app/config_server_80.ini"
The module “./gehalt.py” is the model, containing the code for accessing
and processing the backend data: from the most basic data to the content
of the application itself.
The folder “./gestalt” is the view, containing the templates to generate
the HTML or XML of the response.
'''
import json
try: import regex as re
......
# Licensed under http://www.apache.org/licenses/LICENSE-2.0
# Attribution notice: by Stefan Müller in 2013 ff. (© http://badw.de)
'''
This module is the core and controller of the application at hand.
Its installation requirements and version requirements are listed
in the file “requirements.txt” next to this module. You can start
the system by executing this module with a Python interpreter and
with one or more arguments – each of which is an absolute path to
a file containing some obligatory and, as far as required by your
adaptation, some custom configuration data. An example for a call
to execute the module on localhost is:
:shell:`python /local/app/code/python/exemplar/geist.py "/local/app/config.ini" "/local/app/config_localhost.ini"`
The example must be adapted according to the syntax rules of your
shell and the locations of the specified files! – Another example
executes the module on a server, naming a different second file:
:shell:`python /local/app/code/python/exemplar/geist.py "/local/app/config.ini" "/local/app/config_server_80.ini"`
This module is the core and controller of the application at hand. – Its
installation requirements (besides Python itself) are listed in the file
“./requirements.txt”. – You can start this application by executing this
module with a Python interpreter, passing one or more arguments, each of
which is an absolute path to a file containing the basic data to run the
application: e.g. paths to key files or to content folders and any other
configuration. – Here is an example for a call to execute this module on
localhost:
python /local/app/code/python/exemplar/geist.py "/local/app/config.ini" "/local/app/config_localhost.ini"
The example must be adapted to the syntax rules of the shell you use and
to the real locations of the files you specify. – Here is an example for
running the application on a server, specifying a different second file:
python /local/app/code/python/exemplar/geist.py "/local/app/config.ini" "/local/app/config_server_80.ini"
The module “./gehalt.py” is the model, containing the code for accessing
and processing the backend data: from the most basic data to the content
of the application itself.
The folder “./gestalt” is the view, containing the templates to generate
the HTML or XML of the response.
'''
from gevent import monkey; monkey.patch_all()
import json
......
# Licensed under http://www.apache.org/licenses/LICENSE-2.0
# Attribution notice: by Stefan Müller in 2013 ff. (© http://badw.de)
'''
This module is the core and controller of the application at hand.
Its installation requirements and version requirements are listed
in the file “requirements.txt” next to this module. You can start
the system by executing this module with a Python interpreter and
with one or more arguments – each of which is an absolute path to
a file containing some obligatory and, as far as required by your
adaptation, some custom configuration data. An example for a call
to execute the module on localhost is:
:shell:`python /local/app/code/python/exemplar/geist.py "/local/app/config.ini" "/local/app/config_localhost.ini"`
The example must be adapted according to the syntax rules of your
shell and the locations of the specified files! – Another example
executes the module on a server, naming a different second file:
:shell:`python /local/app/code/python/exemplar/geist.py "/local/app/config.ini" "/local/app/config_server_80.ini"`
This module is the core and controller of the application at hand. – Its
installation requirements (besides Python itself) are listed in the file
“./requirements.txt”. – You can start this application by executing this
module with a Python interpreter, passing one or more arguments, each of
which is an absolute path to a file containing the basic data to run the
application: e.g. paths to key files or to content folders and any other
configuration. – Here is an example for a call to execute this module on
localhost:
python /local/app/code/python/exemplar/geist.py "/local/app/config.ini" "/local/app/config_localhost.ini"
The example must be adapted to the syntax rules of the shell you use and
to the real locations of the files you specify. – Here is an example for
running the application on a server, specifying a different second file:
python /local/app/code/python/exemplar/geist.py "/local/app/config.ini" "/local/app/config_server_80.ini"
The module “./gehalt.py” is the model, containing the code for accessing
and processing the backend data: from the most basic data to the content
of the application itself.
The folder “./gestalt” is the view, containing the templates to generate
the HTML or XML of the response.
'''
from gevent import monkey; monkey.patch_all()
import json
......
# Licensed under http://www.apache.org/licenses/LICENSE-2.0
# Attribution notice: by Stefan Müller in 2013 ff. (© http://badw.de)
'''
This module is the core and controller of the application at hand.
Its installation requirements and version requirements are listed
in the file “requirements.txt” next to this module. You can start
the system by executing this module with a Python interpreter and
with one or more arguments – each of which is an absolute path to
a file containing some obligatory and, as far as required by your
adaptation, some custom configuration data. An example for a call
to execute the module on localhost is:
:shell:`python /local/app/code/python/exemplar/geist.py "/local/app/config.ini" "/local/app/config_localhost.ini"`
The example must be adapted according to the syntax rules of your
shell and the locations of the specified files! – Another example
executes the module on a server, naming a different second file:
:shell:`python /local/app/code/python/exemplar/geist.py "/local/app/config.ini" "/local/app/config_server_80.ini"`
This module is the core and controller of the application at hand. – Its
installation requirements (besides Python itself) are listed in the file
“./requirements.txt”. – You can start this application by executing this
module with a Python interpreter, passing one or more arguments, each of
which is an absolute path to a file containing the basic data to run the
application: e.g. paths to key files or to content folders and any other
configuration. – Here is an example for a call to execute this module on
localhost:
python /local/app/code/python/exemplar/geist.py "/local/app/config.ini" "/local/app/config_localhost.ini"
The example must be adapted to the syntax rules of the shell you use and
to the real locations of the files you specify. – Here is an example for
running the application on a server, specifying a different second file:
python /local/app/code/python/exemplar/geist.py "/local/app/config.ini" "/local/app/config_server_80.ini"
The module “./gehalt.py” is the model, containing the code for accessing
and processing the backend data: from the most basic data to the content
of the application itself.
The folder “./gestalt” is the view, containing the templates to generate
the HTML or XML of the response.
'''
import sys
import time
......
# Licensed under http://www.apache.org/licenses/LICENSE-2.0
# Attribution notice: by Stefan Müller in 2013 ff.
'''
This module is the core and controller of the application at hand.
Its installation requirements and version requirements are listed
in the file “requirements.txt” next to this module. You can start
the system by executing this module with a Python interpreter and
with one or more arguments – each of which is an absolute path to
a file containing some obligatory and, as far as required by your
adaptation, some custom configuration data. An example for a call
to execute the module on localhost is:
:shell:`python /local/app/code/python/exemplar/geist.py "/local/app/config.ini" "/local/app/config_localhost.ini"`
The example must be adapted according to the syntax rules of your
shell and the locations of the specified files! – Another example
executes the module on a server, naming a different second file:
:shell:`python /local/app/code/python/exemplar/geist.py "/local/app/config.ini" "/local/app/config_server_80.ini"`
This module is the core and controller of the application at hand. – Its
installation requirements (besides Python itself) are listed in the file
“./requirements.txt”. – You can start this application by executing this
module with a Python interpreter, passing one or more arguments, each of
which is an absolute path to a file containing the basic data to run the
application: e.g. paths to key files or to content folders and any other
configuration. – Here is an example for a call to execute this module on
localhost:
python /local/app/code/python/exemplar/geist.py "/local/app/config.ini" "/local/app/config_localhost.ini"
The example must be adapted to the syntax rules of the shell you use and
to the real locations of the files you specify. – Here is an example for
running the application on a server, specifying a different second file:
python /local/app/code/python/exemplar/geist.py "/local/app/config.ini" "/local/app/config_server_80.ini"
The module “./gehalt.py” is the model, containing the code for accessing
and processing the backend data: from the most basic data to the content
of the application itself.
The folder “./gestalt” is the view, containing the templates to generate
the HTML or XML of the response.
'''
import argparse
import json
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment