#\r
# @retval: A recordSet of all found records \r
#\r
- def Query(self, Model, Arch=None, Platform=None):\r
+ def Query(self, Model, Arch=None, Platform=None, BelongsToItem=None):\r
ConditionString = "Model=%s AND Enabled>=0" % Model\r
ValueString = "Value1,Value2,Value3,Scope1,Scope2,ID,StartLine"\r
\r
ConditionString += " AND (Scope1='%s' OR Scope1='COMMON')" % Arch\r
if Platform != None and Platform != 'COMMON':\r
ConditionString += " AND (Scope2='%s' OR Scope2='COMMON' OR Scope2='DEFAULT')" % Platform\r
+ if BelongsToItem != None:\r
+ ConditionString += " AND BelongsToItem=%s" % BelongsToItem\r
\r
SqlCommand = "SELECT %s FROM %s WHERE %s" % (ValueString, self.Table, ConditionString)\r
return self.Exec(SqlCommand)\r