~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:18:30 UTC
  • mto: This revision was merged to the branch mainline in revision 2441.
  • Revision ID: robertc@robertcollins.net-20070420001830-lrxkvu3fkd1d7bnn
Initial stub for topic searching.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
from bzrlib import (
28
28
    commands as _mod_commands,
 
29
    errors,
29
30
    help_topics,
30
31
    osutils,
31
32
    )
189
190
            help_topics.HelpTopicContext(),
190
191
            _mod_commands.HelpCommandContext(),
191
192
            ]
 
193
 
 
194
    def search(self, topic):
 
195
        """Search for topic across the help search path.
 
196
        
 
197
        :param topic: A string naming the help topic to search for.
 
198
        :raises: NoHelpTopic if none of the contexts in search_path have topic.
 
199
        """
 
200
        raise errors.NoHelpTopic(topic)