Subversion Repositories SmartDukaan

Rev

Rev 347 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

print "expFacetDef=" + `expFacetDef`

facetDefID = expFacetDef.getID()
xmlsnippet = "\t\t<Facet>\n"
xmlsnippet += "\t\t\t<FacetDefinitionID>" + str(facetDefID) + "</FacetDefinitionID>\n" 

target = expFacetDef.getTarget()
xmlsnippet += "\t\t\t<Label>" + target + "</Label>\n"

xmlsnippet += "\t\t\t<IsMultivalue>false</IsMultivalue>\n"

xmlsnippet += "\t\t\t<HierarchyType>Flat</HierarchyType>\n"
 
xmlsnippet += "\t\t\t<NullBehavior>Reject</NullBehavior>\n"
 
xmlsnippet += "\t\t\t<Datatype>string</Datatype>\n" 

xmlsnippet += "\t\t\t<FacetValues>\n" 

# low
xmlsnippet += "\t\t\t\t<FacetValue>\n" 
xmlsnippet += "\t\t\t\t\t<Value>Upto 2 Mpx</Value>\n" 
xmlsnippet += "\t\t\t\t</FacetValue>\n"

# Medium
xmlsnippet += "\t\t\t\t<FacetValue>\n" 
xmlsnippet += "\t\t\t\t\t<Value>2 - 5 Mpx</Value>\n" 
xmlsnippet += "\t\t\t\t</FacetValue>\n"

# High
xmlsnippet += "\t\t\t\t<FacetValue>\n" 
xmlsnippet += "\t\t\t\t\t<Value>5 - 10 Mpx</Value>\n" 
xmlsnippet += "\t\t\t\t</FacetValue>\n"

# Very High
xmlsnippet += "\t\t\t\t<FacetValue>\n" 
xmlsnippet += "\t\t\t\t\t<Value>Above 10 Mpx</Value>\n" 
xmlsnippet += "\t\t\t\t</FacetValue>\n"

xmlsnippet += "\t\t\t</FacetValues>\n"
        
xmlsnippet += "\t\t</Facet>"