root/IoTa-Installer/lib/epcis.py @ 675e977d
2e0a7cb1 | Sylvain L. Sauvage | # -*- coding: utf-8 -*-
|
|
#
|
|||
# This program is a part of the IoTa project.
|
|||
#
|
|||
# Copyright © 2012 Université de Caen Basse-Normandie, GREYC
|
|||
19b58bab | Rémy Ménard | #
|
|
2e0a7cb1 | Sylvain L. Sauvage | # This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|||
# the Free Software Foundation, either version 3 of the License, or
|
|||
# (at your option) any later version.
|
|||
#
|
|||
# This program is distributed in the hope that it will be useful,
|
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|||
# GNU General Public License for more details.
|
|||
# <http://www.gnu.org/licenses/>
|
|||
#
|
|||
# See AUTHORS for a list of contributors.
|
|||
#
|
|||
import installer
|
|||
from config import CONFIG
|
|||
class EpcisInstaller(installer.DBWebAppInstaller):
|
|||
def __init__(self):
|
|||
installer.DBWebAppInstaller.__init__(self, "Fosstrak EPCIS", "epcis", [
|
|||
("Enter the EPCIS web application name", "epcis", "name", {}),
|
|||
("Enter the archive file pathname", "epcis", "repo", {"type": "file"}),
|
|||
("Enter the EPCIS database name", "epcis", "db_name", {}),
|
|||
("Enter the EPCIS database login", "epcis", "db_login", {}),
|
|||
("Enter the EPCIS database password", "epcis", "db_password", {})
|
|||
])
|
|||
def postConfigure(self):
|
|||
96454bcd | Sylvain L. Sauvage | url = self.setURL()
|
|
qurl = self.cset("query_url", url + "query")
|
|||
self.cset("capture_url", url + "capture")
|
|||
self.cset("db_jndi", "EPCISDB")
|
|||
CONFIG.set("epcilon", "subscription_url", qurl)
|