~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

Merged fix-retest-colorize into redo-read-only-transactions-in-buildmaster, resolving several import conflicts.

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 canonical.launchpad.webapp.testing import verifyObject
9
 
    >>> from canonical.launchpad.webapp.vocabulary import IHugeVocabulary
 
8
    >>> from lp.services.webapp.testing import verifyObject
 
9
    >>> from lp.services.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 canonical.launchpad.webapp.vocabulary import CountableIterator
 
77
    >>> from lp.services.webapp.vocabulary import CountableIterator
78
78
    >>> terms = vocabulary.searchForTerms('extensions')
79
79
    >>> proxy.isinstance(terms, CountableIterator)
80
80
    True