Ejemplo n.º 1
0
 def setUp(self):
     try:
         quorum.load(
             name = __name__,
             mongo_database = "test",
             models = mock
         )
     except Exception:
         self.skip()
Ejemplo n.º 2
0
 def setUp(self):
     try:
         self.app = quorum.load(
             name = __name__,
             secret_key = "secret"
         )
         self.app.config["APPLICATION_ROOT"] = "/"
     except Exception:
         self.skip()
Ejemplo n.º 3
0
__date__ = "$LastChangedDate$"
""" The last change date of the module """

__copyright__ = "Copyright (c) 2008-2019 Hive Solutions Lda."
""" The copyright for the module """

__license__ = "Apache License, Version 2.0"
""" The license for the module """

import flask #@UnusedImport

import quorum

SECRET_KEY = "kyjbqt4828ky8fdl7ifwgawt60erk8wg"
""" The "secret" key to be at the internal encryption
processes handled by flask (eg: sessions) """

app = quorum.load(
    name = __name__,
    secret_key = SECRET_KEY,
    logger = "layout_demo.debug"
)

import layout_demo.views #@UnusedImport

if __name__ == "__main__":
    quorum.run(server = "netius")
else:
    __path__ = []
Ejemplo n.º 4
0
 def setUp(self):
     try:
         quorum.load(name = __name__)
         quorum.get_amazon()
     except Exception:
         self.skip()
Ejemplo n.º 5
0
""" The version of the module """

__revision__ = "$LastChangedRevision$"
""" The revision number of the module """

__date__ = "$LastChangedDate$"
""" The last change date of the module """

__copyright__ = "Copyright (c) 2008-2016 Hive Solutions Lda."
""" The copyright for the module """

__license__ = "Apache License, Version 2.0"
""" The license for the module """

import flask  #@UnusedImport

import quorum

SECRET_KEY = "kyjbqt4822ky8fdlbifwgawt60erk8wg"
""" The "secret" key to be at the internal encryption
processes handled by flask (eg: sessions) """

app = quorum.load(name=__name__,
                  secret_key=SECRET_KEY,
                  logger="uxf_demo.debug")

import uxf_demo.views  #@UnusedImport

if __name__ == "__main__":
    quorum.run(server="netius")
Ejemplo n.º 6
0
__revision__ = "$LastChangedRevision$"
""" The revision number of the module """

__date__ = "$LastChangedDate$"
""" The last change date of the module """

__copyright__ = "Copyright (c) 2008-2019 Hive Solutions Lda."
""" The copyright for the module """

__license__ = "Apache License, Version 2.0"
""" The license for the module """

import flask

import quorum

app = quorum.load(name = __name__)

@app.route("/", methods = ("GET",))
@app.route("/index", methods = ("GET",))
def index():
    return flask.render_template(
        "index.html.tpl",
        link = "home"
    )

if __name__ == "__main__":
    quorum.run(server = "waitress")
else:
    __path__ = []
Ejemplo n.º 7
0
    "foundation.employee.list",
    "foundation.employee.show",
    "foundation.supplier_company.list",
    "foundation.supplier_company.show",
    "customers.customer_person.list",
    "customers.customer_person.show",
    "documents.signed_document.list",
    "documents.signed_document.submit_at",
    "analytics.sale_snapshot.list"
)
""" The list of permissions to be used to create the
scope string for the oauth value """

app = quorum.load(
    name = __name__,
    logger = "omnia.debug",
    PERMANENT_SESSION_LIFETIME = datetime.timedelta(31)
)

@app.route("/", methods = ("GET",))
@app.route("/index", methods = ("GET",))
def index():
    return flask.render_template(
        "index.html.tpl",
        link = "home"
    )

@app.route("/base", methods = ("GET",))
def base():
    return flask.render_template(
        "base.html.tpl",
Ejemplo n.º 8
0
import models
import quorum

MONGO_DATABASE = "automium"
""" The default database to be used for the connection with
the mongo database """

CURRENT_DIRECTORY = os.path.dirname(__file__)
CURRENT_DIRECTORY_ABS = os.path.abspath(CURRENT_DIRECTORY)
UPLOAD_FOLDER = os.path.join(CURRENT_DIRECTORY_ABS, "uploads")
PROJECTS_FOLDER = os.path.join(CURRENT_DIRECTORY_ABS, "projects")

app = flask.Flask(__name__)
app.config["UPLOAD_FOLDER"] = UPLOAD_FOLDER
app.config["MAX_CONTENT_LENGTH"] = 1024 ** 3
quorum.load(app, mongo_database=MONGO_DATABASE, name="automium_web.debug", models=models)
quorum.confs("PROJECTS_FOLDER", PROJECTS_FOLDER)

start_time = int(time.time())


@app.route("/")
@app.route("/index")
def index():
    return flask.render_template("index.html.tpl", link="home")


@app.route("/login", methods=("GET",))
def login():
    return flask.render_template("login.html.tpl")
Ejemplo n.º 9
0
 def setUp(self):
     try:
         quorum.load(name=__name__)
     except Exception:
         self.skip()
Ejemplo n.º 10
0
 def setUp(self):
     try:
         self.app = quorum.load(name=__name__, secret_key="secret")
         self.app.config["APPLICATION_ROOT"] = "/"
     except Exception:
         self.skip()
Ejemplo n.º 11
0
""" The default database to be used for the connection with
the MongoDB database """

SECRET_KEY = "zhsga32ki5kvv7ymq8nolbleg248fzn1"
""" The "secret" key to be at the internal encryption
processes handled by flask (eg: sessions) """

@quorum.onrun
def onrun():
    import omnix.util
    omnix.util.run_slave(1)
    omnix.util.run_supervisor()
    omnix.util.load_scheduling()

app = quorum.load(
    name = __name__,
    secret_key = SECRET_KEY,
    mongo_database = MONGO_DATABASE,
    logger = "omnix.debug",
    models = omnix.models,
    PERMANENT_SESSION_LIFETIME = datetime.timedelta(31),
    MAX_CONTENT_LENGTH = 1024 ** 3
)

import omnix.views #@UnusedImport

if __name__ == "__main__":
    quorum.run(server = "netius")
else:
    __path__ = []
Ejemplo n.º 12
0
 def setUp(self):
     try:
         quorum.load(name=__name__)
         quorum.get_amazon()
     except Exception:
         self.skip()
Ejemplo n.º 13
0
__date__ = "$LastChangedDate$"
""" The last change date of the module """

__copyright__ = "Copyright (c) 2008-2016 Hive Solutions Lda."
""" The copyright for the module """

__license__ = "Apache License, Version 2.0"
""" The license for the module """

import flask #@UnusedImport

import quorum

MONGO_DATABASE = "tiberium_soul"
""" The default database to be used for the connection with
the mongo database """

app = quorum.load(
    name = __name__,
    redis_session = True,
    mongo_database = MONGO_DATABASE,
    logger = "tiberium_soul.debug",
    MAX_CONTENT_LENGTH = 1024 ** 3
)

import tiberium_soul.views #@UnusedImport

if __name__ == "__main__":
    quorum.run(server = "netius")
Ejemplo n.º 14
0
__date__ = "$LastChangedDate$"
""" The last change date of the module """

__copyright__ = "Copyright (c) 2008-2019 Hive Solutions Lda."
""" The copyright for the module """

__license__ = "Apache License, Version 2.0"
""" The license for the module """

import flask #@UnusedImport

import quorum

SECRET_KEY = "fs8t3cty11net89x6suvked09v56pa80"
""" The "secret" key to be at the internal encryption
processes handled by flask (eg: sessions) """

app = quorum.load(
    name = __name__,
    secret_key = SECRET_KEY,
    redis_session = True,
    logger = "pushi_example.debug"
)

import pushi_example.views #@UnusedImport

if __name__ == "__main__":
    quorum.run(server = "netius")
else:
    __path__ = []
Ejemplo n.º 15
0
import mantium.models

MONGO_DATABASE = "automium"
""" The default database to be used for the connection with
the mongo database """

CURRENT_DIRECTORY = os.path.dirname(__file__)
CURRENT_DIRECTORY_ABS = os.path.abspath(CURRENT_DIRECTORY)
UPLOAD_FOLDER = os.path.join(CURRENT_DIRECTORY_ABS, "uploads")
PROJECTS_FOLDER = os.path.join(CURRENT_DIRECTORY_ABS, "projects")

app = quorum.load(
    name = __name__,
    mongo_database = MONGO_DATABASE,
    logger = "mantium.debug",
    models = mantium.models,
    UPLOAD_FOLDER = UPLOAD_FOLDER,
    MAX_CONTENT_LENGTH = 1024 ** 3
)
quorum.confs("PROJECTS_FOLDER", PROJECTS_FOLDER)

import mantium.views #@UnusedImport

# schedules the various projects currently registered in
# the system internal structures
mantium.models.Project.schedule_all()

if __name__ == "__main__":
    quorum.run(server = "netius")
Ejemplo n.º 16
0
import cameria.models

SECRET_KEY = "dzhneqksmwtuinay5dfdljec19pi765p"
""" The "secret" key to be at the internal encryption
processes handled by flask (eg: sessions) """

MONGO_DATABASE = "cameria"
""" The default database to be used for the connection with
the mongo database """

CURRENT_DIRECTORY = os.path.dirname(__file__)
CURRENT_DIRECTORY_ABS = os.path.abspath(CURRENT_DIRECTORY)
UPLOAD_FOLDER = os.path.join(CURRENT_DIRECTORY_ABS, "uploads")

app = quorum.load(
    name = __name__,
    secret_key = SECRET_KEY,
    redis_session = True,
    mongo_database = MONGO_DATABASE,
    logger = "cameria.debug",
    models = cameria.models,
    PERMANENT_SESSION_LIFETIME = datetime.timedelta(365),
    UPLOAD_FOLDER = UPLOAD_FOLDER,
    MAX_CONTENT_LENGTH = 1024 ** 3
)

import cameria.views #@UnusedImport

if __name__ == "__main__":
    quorum.run(server = "netius")
Ejemplo n.º 17
0
#!/usr/bin/python
# -*- coding: utf-8 -*-

import flask #@UnusedImport

import quorum

app = quorum.load(
    name = __name__,
    logger = "hello_quorum.debug"
)

import hello_quorum.views #@UnusedImport

if __name__ == "__main__":
    quorum.run(server = "netius")
Ejemplo n.º 18
0
import pingu.models

SECRET_KEY = "kyjbqt4828ky8fdl7ifwgawt60erk8wg"
""" The "secret" key to be at the internal encryption
processes handled by flask (eg: sessions) """

MONGO_DATABASE = "pingu"
""" The default database to be used for the connection with
the mongo database """

@quorum.onrun
def onrun():
    # schedules the various tasks currently registered in
    # the system internal structures
    pingu.models.Task.schedule_all()

app = quorum.load(
    name = __name__,
    secret_key = SECRET_KEY,
    redis_session = True,
    mongo_database = MONGO_DATABASE,
    logger = "pingu.debug",
    models = pingu.models
)

import pingu.views #@UnusedImport

if __name__ == "__main__":
    quorum.run(server = "netius")
Ejemplo n.º 19
0
""" The revision number of the module """

__date__ = "$LastChangedDate$"
""" The last change date of the module """

__copyright__ = "Copyright (c) 2008-2020 Hive Solutions Lda."
""" The copyright for the module """

__license__ = "Apache License, Version 2.0"
""" The license for the module """

import flask  #@UnusedImport

import quorum

SECRET_KEY = "fs8t3cty11net89x6suvked09v56pa80"
""" The "secret" key to be at the internal encryption
processes handled by flask (eg: sessions) """

app = quorum.load(name=__name__,
                  secret_key=SECRET_KEY,
                  redis_session=True,
                  logger="pushi_example.debug")

import pushi_example.views  #@UnusedImport

if __name__ == "__main__":
    quorum.run(server="netius")
else:
    __path__ = []
Ejemplo n.º 20
0
the mongo database """

SECRET_KEY = "zhsga32ki5kvv7ymq8nolbleg248fzn1"
""" The "secret" key to be at the internal encryption
processes handled by flask (eg: sessions) """


@quorum.onrun
def onrun():
    import omnix.util

    omnix.util.run_slave(1)
    omnix.util.run_supervisor()
    omnix.util.load_scheduling()


app = quorum.load(
    name=__name__,
    secret_key=SECRET_KEY,
    mongo_database=MONGO_DATABASE,
    logger="omnix.debug",
    models=omnix.models,
    PERMANENT_SESSION_LIFETIME=datetime.timedelta(31),
    MAX_CONTENT_LENGTH=1024 ** 3,
)

import omnix.views  # @UnusedImport

if __name__ == "__main__":
    quorum.run(server="netius")
Ejemplo n.º 21
0
MONGO_DATABASE = "automium"
""" The default database to be used for the connection with
the mongo database """

CURRENT_DIRECTORY = os.path.dirname(__file__)
CURRENT_DIRECTORY_ABS = os.path.abspath(CURRENT_DIRECTORY)
UPLOAD_FOLDER = os.path.join(CURRENT_DIRECTORY_ABS, "uploads")
PROJECTS_FOLDER = os.path.join(CURRENT_DIRECTORY_ABS, "projects")

app = flask.Flask(__name__)
app.config["UPLOAD_FOLDER"] = UPLOAD_FOLDER
app.config["MAX_CONTENT_LENGTH"] = 1024 ** 3
quorum.load(
    app,
    mongo_database = MONGO_DATABASE,
    name = "automium_web.debug",
    models = models
)
quorum.confs("PROJECTS_FOLDER", PROJECTS_FOLDER)

start_time = int(time.time())

@app.route("/")
@app.route("/index")
def index():
    return flask.render_template(
        "index.html.tpl",
        link = "home"
    )

@app.route("/login", methods = ("GET",))
Ejemplo n.º 22
0
import quorum

import mantium.models

MONGO_DATABASE = "automium"
""" The default database to be used for the connection with
the mongo database """

CURRENT_DIRECTORY = os.path.dirname(__file__)
CURRENT_DIRECTORY_ABS = os.path.abspath(CURRENT_DIRECTORY)
UPLOAD_FOLDER = os.path.join(CURRENT_DIRECTORY_ABS, "uploads")
PROJECTS_FOLDER = os.path.join(CURRENT_DIRECTORY_ABS, "projects")

app = quorum.load(name=__name__,
                  mongo_database=MONGO_DATABASE,
                  logger="mantium.debug",
                  models=mantium.models,
                  UPLOAD_FOLDER=UPLOAD_FOLDER,
                  MAX_CONTENT_LENGTH=1024**3)
quorum.confs("PROJECTS_FOLDER", PROJECTS_FOLDER)

import mantium.views  #@UnusedImport

# schedules the various projects currently registered in
# the system internal structures
mantium.models.Project.schedule_all()

if __name__ == "__main__":
    quorum.run(server="netius")
else:
    __path__ = []
Ejemplo n.º 23
0
__copyright__ = "Copyright (c) 2008-2016 Hive Solutions Lda."
""" The copyright for the module """

__license__ = "Apache License, Version 2.0"
""" The license for the module """

import flask #@UnusedImport
import datetime

import quorum

SECRET_KEY = "ibyzsCBsaAydjIPgZKegzKOxngdImyMh"
""" The "secret" key to be at the internal encryption
processes handled by flask (eg: sessions) """

app = quorum.load(
    name = __name__,
    secret_key = SECRET_KEY,
    PERMANENT_SESSION_LIFETIME = datetime.timedelta(31)
)

import instashow.util #@UnusedImport
import instashow.views #@UnusedImport

@quorum.onrun
def onrun():
    instashow.util.schedule_init()

if __name__ == "__main__":
    quorum.run(server = "netius")
Ejemplo n.º 24
0
 def setUp(self):
     try:
         quorum.load(name = __name__)
     except Exception:
         self.skip()
Ejemplo n.º 25
0
 def setUp(self):
     try:
         quorum.load(name=__name__, mongo_database="test", models=mock)
     except Exception:
         self.skip()
Ejemplo n.º 26
0
""" The copyright for the module """

__license__ = "Apache License, Version 2.0"
""" The license for the module """

import flask  #@UnusedImport
import datetime

import quorum

SECRET_KEY = "ibyzsCBsaAydjIPgZKegzKOxngdImyMh"
""" The "secret" key to be at the internal encryption
processes handled by flask (eg: sessions) """

app = quorum.load(name=__name__,
                  secret_key=SECRET_KEY,
                  PERMANENT_SESSION_LIFETIME=datetime.timedelta(31))

import instashow.util  #@UnusedImport
import instashow.views  #@UnusedImport


@quorum.onrun
def onrun():
    instashow.util.schedule_init()


if __name__ == "__main__":
    quorum.run(server="netius")
else:
    __path__ = []
Ejemplo n.º 27
0
SECRET_KEY = "kyjbqt4828ky8fdl7ifwgawt60erk8wg"
""" The "secret" key to be at the internal encryption
processes handled by flask (eg: sessions) """

MONGO_DATABASE = "pingu"
""" The default database to be used for the connection with
the MongoDB database """

@quorum.onrun
def onrun():
    # schedules the various tasks currently registered in
    # the system internal structures
    pingu.models.Task.schedule_all()

app = quorum.load(
    name = __name__,
    secret_key = SECRET_KEY,
    redis_session = True,
    mongo_database = MONGO_DATABASE,
    logger = "pingu.debug",
    models = pingu.models
)

import pingu.views #@UnusedImport

if __name__ == "__main__":
    quorum.run(server = "netius")
else:
    __path__ = []