Commit b17a98d8 authored by Marco Mariani's avatar Marco Mariani

extracted db_version.py

parent 7b271255
# -*- coding: utf-8 -*-
import pkg_resources
DB_VERSION = pkg_resources.resource_stream('slapos.proxy', 'schema.sql').readline().strip().split(':')[1]
......@@ -28,15 +28,15 @@
#
##############################################################################
from flask import g, Flask, request, abort
import xml_marshaller
from lxml import etree
import sqlite3
from slapos.slap.slap import Computer, ComputerPartition, \
SoftwareRelease, SoftwareInstance, NotFoundError
import sqlite3
from slapos.proxy.db_version import DB_VERSION
from flask import g, Flask, request, abort
import xml_marshaller
app = Flask(__name__)
DB_VERSION = app.open_resource('schema.sql').readline().strip().split(':')[1]
class UnauthorizedError(Exception):
......
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