~ubuntu-branches/ubuntu/trusty/python-apptools/trusty

« back to all changes in this revision

Viewing changes to enthought/help/help_plugin/action/load_url_action.py

  • Committer: Bazaar Package Importer
  • Author(s): Varun Hiremath
  • Date: 2011-07-08 23:55:50 UTC
  • mfrom: (2.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20110708235550-yz5u79ubeo4dhyfx
Tags: 4.0.0-1
* New upstream release
* Update debian/watch file

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
""" (Pyface) Action for running a help demo.
2
 
 
3
 
    :Copyright: 2009, Enthought Inc.
4
 
    :License: BSD
5
 
    :Author: Vibha Srinivasan
6
 
"""
7
 
# This software is provided without warranty under the terms of the BSD
8
 
# license included in AppTools/trunk/LICENSE.txt and may be redistributed only
9
 
# under the conditions described in the aforementioned license.  The license
10
 
# is also available online at http://www.enthought.com/licenses/BSD.txt
11
 
# Thanks for using Enthought open source!
12
 
 
13
 
# Enthought library imports.
14
 
from doc_action import DocAction
15
 
 
16
 
# This module's parent package.
17
 
PARENT = '.'.join(__name__.split('.')[:-2])
18
 
 
19
 
class LoadURLAction(DocAction):
20
 
    """ Workbench Action for displaying a url in a web browser.
21
 
    """
22
 
    
23
 
    def _my_help_doc_default(self):
24
 
        exns = self.extension_registry.get_extensions(PARENT + 
25
 
                                                      '.help_downloads')
26
 
        for hc in exns:
27
 
            if hc.label == self.name:
28
 
                return hc
29
 
        return None
30
 
    
 
 
b'\\ No newline at end of file'