equal
deleted
inserted
replaced
192 </xsd:element>"""+((""" |
192 </xsd:element>"""+((""" |
193 <xsd:element name="Libraries" minOccurs="0"> |
193 <xsd:element name="Libraries" minOccurs="0"> |
194 <xsd:complexType> |
194 <xsd:complexType> |
195 """+"\n".join(['<xsd:attribute name=' + |
195 """+"\n".join(['<xsd:attribute name=' + |
196 '"Enable_' + libname + '_Library" ' + |
196 '"Enable_' + libname + '_Library" ' + |
197 'type="xsd:boolean" use="optional" default="true"/>' |
197 'type="xsd:boolean" use="optional" default="false"/>' |
198 for libname, _lib in features.libraries])+""" |
198 for libname, _lib in features.libraries])+""" |
199 </xsd:complexType> |
199 </xsd:complexType> |
200 </xsd:element>""") if len(features.libraries) > 0 else '') + """ |
200 </xsd:element>""") if len(features.libraries) > 0 else '') + """ |
201 </xsd:sequence> |
201 </xsd:sequence> |
202 <xsd:attribute name="URI_location" type="xsd:string" use="optional" default=""/> |
202 <xsd:attribute name="URI_location" type="xsd:string" use="optional" default=""/> |
269 |
269 |
270 def LoadLibraries(self): |
270 def LoadLibraries(self): |
271 self.Libraries = [] |
271 self.Libraries = [] |
272 TypeStack = [] |
272 TypeStack = [] |
273 for libname, clsname in features.libraries: |
273 for libname, clsname in features.libraries: |
274 if self.BeremizRoot.Libraries is None or getattr(self.BeremizRoot.Libraries, "Enable_"+libname+"_Library"): |
274 if self.BeremizRoot.Libraries is not None and getattr(self.BeremizRoot.Libraries, "Enable_"+libname+"_Library"): |
275 Lib = GetClassImporter(clsname)()(self, libname, TypeStack) |
275 Lib = GetClassImporter(clsname)()(self, libname, TypeStack) |
276 TypeStack.append(Lib.GetTypes()) |
276 TypeStack.append(Lib.GetTypes()) |
277 self.Libraries.append(Lib) |
277 self.Libraries.append(Lib) |
278 |
278 |
279 def SetAppFrame(self, frame, logger): |
279 def SetAppFrame(self, frame, logger): |