2008-01-12 Benny Malengier <benny.malengier@gramps-project.org>
* 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:
@ -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):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user