~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/answers/doc/faq-vocabulary.txt

  • Committer: Danilo Segan
  • Date: 2011-04-22 14:02:29 UTC
  • mto: This revision was merged to the branch mainline in revision 12910.
  • Revision ID: danilo@canonical.com-20110422140229-zhq4d4c2k8jpglhf
Ignore hidden files when building combined JS file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
    >>> from zope.component import getUtility
7
7
    >>> from zope.schema.vocabulary import getVocabularyRegistry
8
 
    >>> from lp.services.webapp.testing import verifyObject
9
 
    >>> from lp.services.webapp.vocabulary import IHugeVocabulary
 
8
    >>> from canonical.launchpad.webapp.testing import verifyObject
 
9
    >>> from canonical.launchpad.webapp.vocabulary import IHugeVocabulary
10
10
    >>> from lp.registry.interfaces.product import IProductSet
11
11
 
12
12
    >>> vocabulary_registry = getVocabularyRegistry()
74
74
are similar to the query:
75
75
 
76
76
    >>> from zope.security import proxy
77
 
    >>> from lp.services.webapp.vocabulary import CountableIterator
 
77
    >>> from canonical.launchpad.webapp.vocabulary import CountableIterator
78
78
    >>> terms = vocabulary.searchForTerms('extensions')
79
79
    >>> proxy.isinstance(terms, CountableIterator)
80
80
    True