FacetSet RangeFacet

20 views
Skip to first unread message

zzart

unread,
Sep 24, 2012, 9:49:50 AM9/24/12
to eav-d...@googlegroups.com
Hi Andy,
Is there a way to use FacetSet for a type.TYPE_FLOAT ?
ie:
Schema.objects.filter(name__in=['price']).update(filtered=True) 
fs =  FacetSet({'price':(1,100) })  # is this how u would pass data to RangeFacet ? 
[i.price for i in fs]

( In this example the price is being one of the attrs of Entity) 

For me the facets.py / get_lookups() (line 337) 

 for facet in self.facets:
            data  = self.form[facet.attr_name].data
            field = self.form.fields[facet.attr_name]
            value = field.clean(data)
            print data, field, value
            lookups.update(facet.get_lookups(value))
        return lookups                  


data always returns [None, None] ?


Reply all
Reply to author
Forward
0 new messages