~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugin.py

  • Committer: Robert Collins
  • Date: 2007-04-20 05:44:37 UTC
  • mto: This revision was merged to the branch mainline in revision 2441.
  • Revision ID: robertc@robertcollins.net-20070420054437-5txpyqld8y7cl3k5
Fix the ModuleHelpTopic get_help_topic to be tested with closer to real world data and strip the bzrlib.plugins. prefix from the name.

Show diffs side-by-side

added added

removed removed

Lines of Context:
333
333
        return result
334
334
 
335
335
    def get_help_topic(self):
336
 
        """Return the modules help topic - its __name__."""
337
 
        return self.module.__name__
 
336
        """Return the modules help topic - its __name__ after bzrlib.plugins.."""
 
337
        return self.module.__name__[len('bzrlib.plugins.'):]