コード例 #1
0
def setup_logging():
    logger = get_logger("office365", "o365")
    handler = logging.StreamHandler()
    handler.setLevel(logging.DEBUG)
    handler.setFormatter(LevelDependentFormatter())
    logger.addHandler(handler)
    logger.setLevel(logging.DEBUG)
    return logger
コード例 #2
0
ファイル: udm_helper.py プロジェクト: Rabie-Zamane/office365
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public
# License with the Debian GNU/Linux or Univention distribution in file
# /usr/share/common-licenses/AGPL-3; if not, see
# <http://www.gnu.org/licenses/>.

from ldap.filter import filter_format, escape_filter_chars
import univention.admin.uldap
import univention.admin.objects
from univention.config_registry import ConfigRegistry
from univention.office365.logging2udebug import get_logger

logger = get_logger("office365", "o365")


class UDMHelper(object):
    """
	UDM functions collection
	"""
    ldap_cred = None
    lo = None
    po = None
    modules = dict()

    def __init__(self, ldap_cred, adconnection_alias=None):
        self.__class__.ldap_cred = ldap_cred
        self.adconnection_alias = adconnection_alias