6
0
Fork 0
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
calculate-utils-3-unix/pym/unix/unix.py

46 Zeilen
1.4 KiB

# -*- coding: utf-8 -*-
# Copyright 2016 Mir Calculate. 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.
import sys
vor 8 Jahren
import os
from os import path
from calculate.core.server.func import MethodsInterface
vor 8 Jahren
from calculate.server.server import Server
from calculate.lib.utils.files import listDirectory
from calculate.ldap.ldap import Ldap
import shutil
_ = lambda x: x
from calculate.lib.cl_lang import (setLocalTranslate, getLazyLocalTranslate)
vor 8 Jahren
setLocalTranslate('cl_unix3', sys.modules[__name__])
__ = getLazyLocalTranslate(_)
vor 8 Jahren
class UnixError(Exception):
pass
vor 8 Jahren
class Unix(Ldap):
"""Основной объект для выполнения действий связанных
vor 8 Jahren
с настройкой Unix сервиса
"""
class Method(object):
vor 8 Jahren
Setup = "unix_setup"
All = (Setup,)
def init(self):
pass