#-*- coding: utf-8 -*-

# Copyright 2008-2013 Calculate Ltd. http://www.calculate-linux.org
#
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
#  You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.

#Allowed keys
#   mode -     variable mode: 'w' - you can change value from command line,
#              'r' you cann't change value from command line
#   type     - depricated
#   value    - value 
#   hide - show or not variable for display values

import os
from os import path
import sys
from calculate.lib.cl_lang import setLocalTranslate
setLocalTranslate('cl_lib3',sys.modules[__name__])
import socket
from datavars import VariableError, Variables
from utils.common import getValueFromCmdLine, getValueFromConfig
from utils.files import readFile, readLinesFile, listDirectory
from utils.device import lspci, getUdevDeviceInfo
import re
from variables import X11,Env,Net,Locale,Hardware,LDAP,User,System,Linux

class Data(Net,Env,Locale,Hardware,X11,LDAP,User,System,Linux):
    section = "main"
