diff --git a/ChangeLog b/ChangeLog index ca617337b..2e93c1585 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-01-12 Benny Malengier + * src/const.py.in: new manual constant keys + * src/GrampsDisplay.py: show wiki manual, allow webpage and + section to be passed + RERUN ./autogen.sh 2008-01-12 Peter Landgren * src/ViewManager.py: partial fix for #1580. Work in DisplayState.py remains. diff --git a/src/GrampsDisplay.py b/src/GrampsDisplay.py index b5af4bcdd..cfea87bcc 100644 --- a/src/GrampsDisplay.py +++ b/src/GrampsDisplay.py @@ -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): """ diff --git a/src/const.py.in b/src/const.py.in index b6dda76e0..348e562a4 100644 --- a/src/const.py.in +++ b/src/const.py.in @@ -41,7 +41,8 @@ from gettext import gettext as _ URL_HOMEPAGE = "http://gramps-project.org/" URL_MAILINGLIST = "http://sourceforge.net/mail/?group_id=25770" URL_BUGTRACKER = "http://bugs.gramps-project.org/bug_report_advanced_page.php" -URL_MANUAL = "http://gramps-project.org/gramps-manual/2.2/" +URL_WIKISTRING = "http://gramps-project.org/wiki/index.php?title=" +URL_MANUAL_PAGE = "Gramps_3.0_Wiki_Manual" #------------------------------------------------------------------------- #