Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

46 linhas
1.4 KiB

  1. # -*- coding: utf-8 -*-
  2. # Copyright 2016 Mir Calculate. http://www.calculate-linux.org
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. import sys
  16. import os
  17. from os import path
  18. from calculate.core.server.func import MethodsInterface
  19. from calculate.server.server import Server
  20. from calculate.lib.utils.files import listDirectory
  21. from calculate.ldap.ldap import Ldap
  22. import shutil
  23. _ = lambda x: x
  24. from calculate.lib.cl_lang import (setLocalTranslate, getLazyLocalTranslate)
  25. setLocalTranslate('cl_unix3', sys.modules[__name__])
  26. __ = getLazyLocalTranslate(_)
  27. class UnixError(Exception):
  28. pass
  29. class Unix(Ldap):
  30. """Основной объект для выполнения действий связанных
  31. с настройкой Unix сервиса
  32. """
  33. class Method(object):
  34. Setup = "unix_setup"
  35. All = (Setup,)
  36. def init(self):
  37. pass