Browse Source

Modified method of printing variables.

Added to the variables used from the library module.
tags/3.5.0_alpha1
Самоукин Алексей 10 years ago
parent
commit
432caaf3f4
2 changed files with 14 additions and 3 deletions
  1. +6
    -1
      pym/cl_share_cmd.py
  2. +8
    -2
      pym/cl_vars_ldap.py

+ 6
- 1
pym/cl_share_cmd.py View File

@@ -43,7 +43,12 @@ class share_cmd(color_print, _error):
varsNames.append(optCmd)
if optObj.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):
"""Установка переменных"""


+ 8
- 2
pym/cl_vars_ldap.py View File

@@ -14,6 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from cl_ldap_service import __version__, __app__

class Data:
#базовый суффикс LDAP
@@ -68,10 +69,15 @@ class Data:
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'}

# lib vars
cl_pass_step = {}
cl_api = {}
cl_env_path = {}

Loading…
Cancel
Save