Modified method of printing variables.

Added to the variables used from the library module.
legacy27
Самоукин Алексей 14 years ago
parent 9dd20ff118
commit 432caaf3f4

@ -43,7 +43,12 @@ class share_cmd(color_print, _error):
varsNames.append(optCmd) varsNames.append(optCmd)
if optObj.xml: if optObj.xml:
format = "xml" format = "xml"
self.logicObj.printVars(varsFilter, varsNames, outFormat=format) try:
v = int(optObj.v)
except:
v = 1
self.logicObj.printVars(varsFilter, varsNames, outFormat=format,
verbose=v)
def setVars(self, optObj): def setVars(self, optObj):
"""Установка переменных""" """Установка переменных"""

@ -14,6 +14,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from cl_ldap_service import __version__, __app__
class Data: class Data:
#базовый суффикс LDAP #базовый суффикс LDAP
@ -68,10 +69,15 @@ class Data:
sr_ldap_set = {'mode':"w",'value':'off'} sr_ldap_set = {'mode':"w",'value':'off'}
# имя программы # имя программы
cl_name = {'value':'calculate-ldap'} cl_name = {'value':__app__}
# версия программы # версия программы
cl_ver = {'value':'2.2.0.0'} cl_ver = {'value':__version__}
# действие программа устанавливает сервис # действие программа устанавливает сервис
cl_ldap_setup_action = {'value':'down'} cl_ldap_setup_action = {'value':'down'}
# lib vars
cl_pass_step = {}
cl_api = {}
cl_env_path = {}

Loading…
Cancel
Save