#-*- coding: utf-8 -*- # Copyright 2010 Mir 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. #Допустимые ключи # mode - режим переменной r-не переназначается из командной строки, # w-переназначается из командной строки # type - тип переменной состоит из двух элементов(что это и для чего # это) # value - значение переменной по умолчанию # official - флаг того, что данная переменная служебная и не отображается # при печати списка значений переменных from cl_client import __version__ from cl_client import __app__ class Data: # имя программы cl_name = {'value':__app__} # версия программы cl_ver = {'value':__version__} # ip или имя домена (под управлением calculate-server) cl_remote_host = {'mode':'r'} #Логин пользователя ur_login = {'mode':"r"} #Название группы пользователя ur_group = {'mode':"r"} #Полное имя пользователя ur_fullname = {'mode':"r"} # Jabber ID пользователя ur_jid = {'mode':"r"} # Почтовый адрес пользователя ur_mail = {'mode':"r"} # Режим работы клиента # (local или имя хоста клиента) os_remote_auth = {'mode':'w'} # Версия программы которой были наложены шаблоны os_remote_client = {'mode':'w'} #Пароль пользователя client cl_remote_pw = {'mode':'w'}