You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.4 KiB
39 lines
1.4 KiB
16 years ago
|
#-*- coding: utf-8 -*-
|
||
|
|
||
11 years ago
|
# Copyright 2008-2013 Calculate Ltd. http://www.calculate-linux.org
|
||
16 years ago
|
#
|
||
16 years ago
|
# 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
|
||
16 years ago
|
#
|
||
16 years ago
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||
16 years ago
|
#
|
||
16 years ago
|
# 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.
|
||
|
|
||
14 years ago
|
#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
|
||
14 years ago
|
# hide - show or not variable for display values
|
||
16 years ago
|
|
||
13 years ago
|
import os
|
||
13 years ago
|
from os import path
|
||
13 years ago
|
import sys
|
||
|
from calculate.lib.cl_lang import setLocalTranslate
|
||
12 years ago
|
setLocalTranslate('cl_lib3',sys.modules[__name__])
|
||
13 years ago
|
import socket
|
||
12 years ago
|
from datavars import VariableError, Variables
|
||
13 years ago
|
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"
|