~jelmer/ubuntu/maverick/bzr/2.2.5

« back to all changes in this revision

Viewing changes to bzrlib/help.py

  • Committer: Bazaar Package Importer
  • Author(s): Jelmer Vernooij
  • Date: 2009-03-10 14:11:59 UTC
  • mfrom: (1.2.1 upstream) (3.1.68 jaunty)
  • Revision ID: james.westby@ubuntu.com-20090310141159-lwzzo5c1fwrtzgj4
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
 
113
113
class HelpIndices(object):
114
114
    """Maintainer of help topics across multiple indices.
115
 
    
 
115
 
116
116
    It is currently separate to the HelpTopicRegistry because of its ordered
117
117
    nature, but possibly we should instead structure it as a search within the
118
118
    registry and add ordering and searching facilities to the registry. The
143
143
 
144
144
    def search(self, topic):
145
145
        """Search for topic across the help search path.
146
 
        
 
146
 
147
147
        :param topic: A string naming the help topic to search for.
148
148
        :raises: NoHelpTopic if none of the indexs in search_path have topic.
149
149
        :return: A list of HelpTopics which matched 'topic'.