Added conditional statement support for DSC file
[people/mcb30/basetools.git] / Source / Python / Workspace / MetaFileTable.py
index 1c1e790..6e3d95d 100644 (file)
@@ -85,7 +85,7 @@ class ModuleTable(Table):
     # @retval:       A recordSet of all found records \r
     #\r
     def Query(self, Model, Value1=None, Arch=None, Platform=None):\r
-        ConditionString = "Model=%s" % Model\r
+        ConditionString = "Model=%s AND Enabled>=0" % Model\r
         if Value1 == None:\r
             ValueString = "Value1,Value2,Value3,Scope1,Scope2,ID,StartLine"\r
         else:\r
@@ -165,7 +165,7 @@ class PackageTable(Table):
     # @retval:       A recordSet of all found records \r
     #\r
     def Query(self, Model, Value1=None, Arch=None):\r
-        ConditionString = "Model=%s" % Model\r
+        ConditionString = "Model=%s AND Enabled>=0" % Model\r
         if Value1 == None:\r
             ValueString = "Value1,Value2,Value3,Scope1,ID,StartLine"\r
         else:\r
@@ -245,7 +245,7 @@ class PlatformTable(Table):
     # @retval:       A recordSet of all found records \r
     #\r
     def Query(self, Model, Value1=None, Scope1=None, Scope2=None, BelongsToItem=None, FromItem=None):\r
-        ConditionString = "Model=%s" % Model\r
+        ConditionString = "Model=%s AND Enabled>=0" % Model\r
         if Value1 == None:\r
             ValueString = "Value1,Value2,Value3,Scope1,Scope2,ID,StartLine"\r
         else:\r