# HG changeset patch # User Andrey Skvortsov # Date 1530024397 -10800 # Node ID 295f966e808318b831bc00850e1fe8dd09285a32 # Parent 3c94bac4526e8754d383de9319f9c3e753f6d66e Disable by default unlisted in project beremiz.xml libraries Used libraries should be explicitly enabled. diff -r 3c94bac4526e -r 295f966e8083 ProjectController.py --- a/ProjectController.py Tue Jun 26 17:34:15 2018 +0300 +++ b/ProjectController.py Tue Jun 26 17:46:37 2018 +0300 @@ -194,7 +194,7 @@ """+"\n".join(['' + 'type="xsd:boolean" use="optional" default="false"/>' for libname, _lib in features.libraries])+""" """) if len(features.libraries) > 0 else '') + """ @@ -271,7 +271,7 @@ self.Libraries = [] TypeStack = [] for libname, clsname in features.libraries: - if self.BeremizRoot.Libraries is None or getattr(self.BeremizRoot.Libraries, "Enable_"+libname+"_Library"): + if self.BeremizRoot.Libraries is not None and getattr(self.BeremizRoot.Libraries, "Enable_"+libname+"_Library"): Lib = GetClassImporter(clsname)()(self, libname, TypeStack) TypeStack.append(Lib.GetTypes()) self.Libraries.append(Lib)