~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/help.py

  • Committer: Robert Collins
  • Date: 2007-04-20 00:30:40 UTC
  • mto: This revision was merged to the branch mainline in revision 2441.
  • Revision ID: robertc@robertcollins.net-20070420003040-6410f4x7k68hsx87
HelpContexts.search now invokes get_topics on each context.

Show diffs side-by-side

added added

removed removed

Lines of Context:
197
197
        :param topic: A string naming the help topic to search for.
198
198
        :raises: NoHelpTopic if none of the contexts in search_path have topic.
199
199
        """
200
 
        raise errors.NoHelpTopic(topic)
 
200
        result = []
 
201
        for context in self.search_path:
 
202
            result.extend(context.get_topics(topic))
 
203
        if not result:
 
204
            raise errors.NoHelpTopic(topic)