Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
347 rajveer 1
print "expFacetDef=" + `expFacetDef`
2
 
3
facetDefID = expFacetDef.getID()
4
xmlsnippet = "\t\t<Facet>\n"
5
xmlsnippet += "\t\t\t<FacetDefinitionID>" + str(facetDefID) + "</FacetDefinitionID>\n" 
6
 
7
target = expFacetDef.getTarget()
8
xmlsnippet += "\t\t\t<Label>" + target + "</Label>\n"
9
 
10
xmlsnippet += "\t\t\t<IsMultivalue>false</IsMultivalue>\n"
11
 
12
xmlsnippet += "\t\t\t<HierarchyType>Flat</HierarchyType>\n"
13
 
14
xmlsnippet += "\t\t\t<NullBehavior>Reject</NullBehavior>\n"
15
 
16
xmlsnippet += "\t\t\t<Datatype>string</Datatype>\n" 
17
 
18
xmlsnippet += "\t\t\t<FacetValues>\n" 
19
 
20
# low
21
xmlsnippet += "\t\t\t\t<FacetValue>\n" 
22
xmlsnippet += "\t\t\t\t\t<Value>Upto 2 Mpx</Value>\n" 
23
xmlsnippet += "\t\t\t\t</FacetValue>\n"
24
 
25
# Medium
26
xmlsnippet += "\t\t\t\t<FacetValue>\n" 
27
xmlsnippet += "\t\t\t\t\t<Value>2 - 5 Mpx</Value>\n" 
28
xmlsnippet += "\t\t\t\t</FacetValue>\n"
29
 
30
# High
31
xmlsnippet += "\t\t\t\t<FacetValue>\n" 
32
xmlsnippet += "\t\t\t\t\t<Value>5 - 10 Mpx</Value>\n" 
33
xmlsnippet += "\t\t\t\t</FacetValue>\n"
34
 
35
# Very High
36
xmlsnippet += "\t\t\t\t<FacetValue>\n" 
37
xmlsnippet += "\t\t\t\t\t<Value>Above 10 Mpx</Value>\n" 
38
xmlsnippet += "\t\t\t\t</FacetValue>\n"
39
 
40
xmlsnippet += "\t\t\t</FacetValues>\n"
41
 
42
xmlsnippet += "\t\t</Facet>"