links to wiki manual

svn: r10589
This commit is contained in:
Erik De Richter 2008-04-19 08:29:43 +00:00
parent 465e950888
commit 58cca17670
2 changed files with 20 additions and 4 deletions

View File

@ -28,7 +28,6 @@
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
import os import os
from gettext import gettext as _
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
@ -49,6 +48,15 @@ import GrampsDisplay
from GrampsWidgets import MonitoredEntry from GrampsWidgets import MonitoredEntry
import ManagedWindow import ManagedWindow
from PluginUtils import Tool, register_tool from PluginUtils import Tool, register_tool
from TransUtils import sgettext as _
#-------------------------------------------------------------------------
#
# Constants
#
#-------------------------------------------------------------------------
WIKI_HELP_PAGE = 'Gramps_3.0_Wiki_Manual_-_Tools'
WIKI_HELP_SEC = _('manual|Edit_Database_Owner_Information')
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
@ -145,7 +153,7 @@ class OwnerEditor(Tool.Tool, ManagedWindow.ManagedWindow):
def on_help_button_clicked(self, obj): def on_help_button_clicked(self, obj):
"""Display the relevant portion of GRAMPS manual""" """Display the relevant portion of GRAMPS manual"""
GrampsDisplay.help() GrampsDisplay.help(webpage=WIKI_HELP_PAGE, section=WIKI_HELP_SEC)
def on_button_press_event(self, obj, event): def on_button_press_event(self, obj, event):
"""Shows popup-menu for db <-> preferences copying""" """Shows popup-menu for db <-> preferences copying"""

View File

@ -29,7 +29,6 @@
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
import os import os
import re import re
from gettext import gettext as _
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
@ -51,6 +50,15 @@ from QuestionDialog import OkDialog
import ManagedWindow import ManagedWindow
import GrampsDisplay import GrampsDisplay
import gen.lib import gen.lib
from TransUtils import sgettext as _
#-------------------------------------------------------------------------
#
# Constants
#
#-------------------------------------------------------------------------
WIKI_HELP_PAGE = 'Gramps_3.0_Wiki_Manual_-_Tools'
WIKI_HELP_SEC = _('manual|Extract_Information_from_Names')
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
@ -288,7 +296,7 @@ class PatchNames(Tool.BatchTool, ManagedWindow.ManagedWindow):
def on_help_clicked(self, obj): def on_help_clicked(self, obj):
"""Display the relevant portion of GRAMPS manual""" """Display the relevant portion of GRAMPS manual"""
GrampsDisplay.help() GrampsDisplay.help(webpage=WIKI_HELP_PAGE, section=WIKI_HELP_SEC)
def on_ok_clicked(self, obj): def on_ok_clicked(self, obj):
trans = self.db.transaction_begin("", batch=True) trans = self.db.transaction_begin("", batch=True)