~sylvain-pineau/launchpad-results/trend-reports-yui3

« back to all changes in this revision

Viewing changes to lib/lpresults/hardware/models/devicevendor.py

  • Committer: Marc Tardif
  • Date: 2011-09-28 15:18:09 UTC
  • Revision ID: marc.tardif@canonical.com-20110928151809-rwn04clcebacbnfm
Added processor states for system units.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
from zope.interface import implements
18
18
 
 
19
from lpresults.database.textgrams import get_text_grams_as_text
19
20
from lpresults.database.textsearch import (
20
21
    TSVectorPart,
21
22
    TSVectorValidator,
29
30
 
30
31
 
31
32
DEVICE_VENDOR_VALIDATOR = TSVectorValidator(
32
 
    "text_search_vector", TSVectorPart(u"name", weight=u"A"))
 
33
    "text_search_vector",
 
34
    TSVectorPart(u"name", weight=u"B", transform=(get_text_grams_as_text,)))
33
35
 
34
36
 
35
37
class DeviceVendor: