Initial commit

This commit is contained in:
Jack Stdin
2016-01-12 19:07:57 +03:00
commit 7f65705742
15 changed files with 474 additions and 0 deletions

18
aore/dbutils/dbschemas.py Normal file
View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*-
class DbSchema:
def __init__(self, name, fieldlist, xmltag):
self.tablename = name
self.fields = fieldlist
self.xml_tag = xmltag
db_shemas = dict()
db_shemas['ADDROBJ'] = DbSchema("ADDROBJ",
["AOID", "AOGUID", "SHORTNAME", "FORMALNAME", "AOLEVEL", "PARENTGUID", "ACTSTATUS",
"CURRSTATUS"],
"Object")
db_shemas['SOCRBASE'] = DbSchema("SOCRBASE", ["LEVEL", "SOCRNAME", "SCNAME", "KOD_T_ST"], "AddressObjectType")
allowed_tables = ["ADDROBJ", "SOCRBASE"]