~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Curtis Hovey
  • Date: 2011-12-24 17:49:30 UTC
  • mto: This revision was merged to the branch mainline in revision 14602.
  • Revision ID: curtis.hovey@canonical.com-20111224174930-xk1d5cvhyxq46ctf
Moved webapp to lp.services.

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