Modified method of printing variables.

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

@ -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):
"""Установка переменных"""

@ -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 = {}

Laden…
Annuleren
Opslaan