MetaSearch: fix help link, pep8

This commit is contained in:
Tom Kralidis 2015-02-24 18:53:35 -05:00
parent 9798c92e49
commit 3deb211d14
2 changed files with 4 additions and 4 deletions

View File

@ -51,8 +51,8 @@ from MetaSearch.dialogs.newconnectiondialog import NewConnectionDialog
from MetaSearch.dialogs.recorddialog import RecordDialog
from MetaSearch.dialogs.xmldialog import XMLDialog
from MetaSearch.util import (get_connections_from_file, get_ui_class,
highlight_xml, normalize_text, open_url,
render_template, StaticContext)
get_help_url, highlight_xml, normalize_text,
open_url, render_template, StaticContext)
BASE_CLASS = get_ui_class('maindialog.ui')
@ -784,7 +784,7 @@ class MetaSearchDialog(QDialog, BASE_CLASS):
def help(self):
"""launch help"""
open_url(self.context.metadata.get('general', 'homepage'))
open_url(get_help_url())
def reject(self):
"""back out of dialogue"""

View File

@ -132,7 +132,7 @@ def get_help_url():
version = QGis.QGIS_VERSION[:3]
path = '%s/%s/docs/user_manual/plugins/plugins_metasearch.html' % \
(version, locale_name)
(version, locale_name)
return '/'.join(['http://docs.qgis.org', path])