* src/const.py.in: new manual constant keys
	* src/GrampsDisplay.py: show wiki manual, allow webpage and 
		section to be passed
	RERUN ./autogen.sh


svn: r9785
This commit is contained in:
Benny Malengier
2008-01-12 15:24:19 +00:00
parent 895e0bb633
commit afaca66068
3 changed files with 22 additions and 7 deletions

View File

@ -22,16 +22,25 @@
import const
def help(target):
def help(target, webpage='', section=''):
"""
Display the specified target in a help window. If this fails,
open the manual on the web site.
"""
try:
import gnome
gnome.help_display('gramps',target)
except:
url(const.URL_MANUAL+'en/')
#try:
# import gnome
# gnome.help_display('gramps',target)
#except:
# url(const.URL_MANUAL+'en/')
# 3.0 Beta, direct to the wiki 3.0 Manual
if not webpage:
link = const.URL_WIKISTRING + const.URL_MANUAL_PAGE
else:
link = const.URL_WIKISTRING + webpage
if section:
link + '#' + section
url(link)
def url(target):
"""