diff --git a/src/data/Web_Basic-Ash.css b/src/data/Web_Basic-Ash.css
index bcd7184c4..ea6a03fbf 100644
--- a/src/data/Web_Basic-Ash.css
+++ b/src/data/Web_Basic-Ash.css
@@ -6,7 +6,6 @@ GRAMPS Cascading Style Sheet
Style Name: Basic-Ash Stylesheet
Style Author: Jason M. Simanek (2008)
Note: Adapted from GRAMPS original Modern Style stylesheet
-$Id$
**************************************************************************************************
This website was created with GRAMPS
--------------------------------------------------------------------------------------------------
@@ -20,7 +19,7 @@ Go to to learn more!
Copyright 2008 Jason M. Simanek
This file is part of the GRAMPS program.
-
+/*
GRAMPS is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, version 2 of the License.
@@ -41,13 +40,16 @@ gray #999
gray light #CCC
gray very light #EEE
white #FFF
+
+ NarrativeWeb Styles
+------------------------------------------------------------------------------------------------
+
+ General Elements
+-----------------------------------------------------
+
+# $Id$
+
*/
-
-/* NarrativeWeb Styles
--------------------------------------------------------------------------------------------- */
-
-/* General Elements
------------------------------------------------------ */
body {
font-family:sans-serif;
color:#000;
diff --git a/src/data/Web_Basic-Cypress.css b/src/data/Web_Basic-Cypress.css
index baa07d17f..25fc71697 100644
--- a/src/data/Web_Basic-Cypress.css
+++ b/src/data/Web_Basic-Cypress.css
@@ -6,7 +6,6 @@ GRAMPS Cascading Style Sheet
Style Name: Basic - Cypress
Style Author: Jason Simanek (2008)
Note: Adapted from GRAMPS original Modern Style stylesheet with colors from the original 'Tranquil' stylesheet
-$Id$
**************************************************************************************************
This website was created with GRAMPS
--------------------------------------------------------------------------------------------------
@@ -44,7 +43,11 @@ white #FFF
*/
/* General Elements
------------------------------------------------------ */
+-----------------------------------------------------
+
+# $Id$
+
+*/
body {
font-family:sans-serif;
color:#000;
diff --git a/src/data/Web_Basic-Lilac.css b/src/data/Web_Basic-Lilac.css
index 1c479dad0..5f456ca59 100644
--- a/src/data/Web_Basic-Lilac.css
+++ b/src/data/Web_Basic-Lilac.css
@@ -6,7 +6,6 @@ GRAMPS Cascading Style Sheet
Style Name: Basic - Lilac
Style Author: Jason M. Simanek (2008)
Note: Adapted from GRAMPS original Modern Style stylesheet with colors from the original 'Business' stylesheet
-$Id$
**************************************************************************************************
This website was created with GRAMPS
--------------------------------------------------------------------------------------------------
@@ -20,7 +19,7 @@ Go to to learn more!
Copyright 2008 Jason M. Simanek
This file is part of the GRAMPS program.
-
+/*
GRAMPS is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, version 2 of the License.
@@ -47,7 +46,11 @@ white #FAFAFF
-------------------------------------------------------------------------------------------- */
/* General Elements
------------------------------------------------------ */
+-----------------------------------------------------
+
+# $Id$
+
+*/
body {
font-family:sans-serif;
color:#000;
diff --git a/src/data/Web_Basic-Peach.css b/src/data/Web_Basic-Peach.css
index 8d79bf162..ace35036e 100644
--- a/src/data/Web_Basic-Peach.css
+++ b/src/data/Web_Basic-Peach.css
@@ -6,7 +6,7 @@ GRAMPS Cascading Style Sheet
Style Name: Basic-Peach Stylesheet
Style Author: Jason M. Simanek (2008)
Note: Adapted from GRAMPS original Modern Style stylesheet with a new orange color scheme.
-$Id$
+
**************************************************************************************************
This website was created with GRAMPS
--------------------------------------------------------------------------------------------------
@@ -47,7 +47,11 @@ yellow light #FFFBE7
-------------------------------------------------------------------------------------------- */
/* General Elements
------------------------------------------------------ */
+-----------------------------------------------------
+
+# $Id$
+
+*/
body {
font-family:sans-serif;
color:#36220B;
diff --git a/src/data/Web_Basic-Spruce.css b/src/data/Web_Basic-Spruce.css
index ae9647432..686b0ab5d 100644
--- a/src/data/Web_Basic-Spruce.css
+++ b/src/data/Web_Basic-Spruce.css
@@ -6,7 +6,7 @@ GRAMPS Cascading Style Sheet
Style Name: Basic-Spruce Stylesheet
Style Author: Jason M. Simanek (2008)
Note: Adapted from GRAMPS original Modern Style stylesheet with a new blue color scheme.
-$Id$
+
**************************************************************************************************
This website was created with GRAMPS
--------------------------------------------------------------------------------------------------
@@ -47,7 +47,11 @@ white #FFF
-------------------------------------------------------------------------------------------- */
/* General Elements
------------------------------------------------------ */
+-----------------------------------------------------
+
+# $Id$
+
+*/
body {
font-family:sans-serif;
color:#000;
diff --git a/src/data/Web_Mainz.css b/src/data/Web_Mainz.css
index b57705ed9..bbcf0b8de 100644
--- a/src/data/Web_Mainz.css
+++ b/src/data/Web_Mainz.css
@@ -3,7 +3,7 @@
GRAMPS Cascading Style Sheet
Style Name: Mainz
Style Author: Jason Simanek (2008)
-$Id$
+
----------------------------------------------------------------------------
This website was created with GRAMPS
----------------------------------------------------------------------------
@@ -55,7 +55,11 @@ Middle Light images/Web_Mainz_MidLight.png
-------------------------------------------------------------------------------------------- */
/* General Elements
------------------------------------------------------ */
+-----------------------------------------------------
+
+# $Id$
+
+*/
body {
font-family:Georgia, serif;
color:#7D5925;
diff --git a/src/data/Web_Nebraska.css b/src/data/Web_Nebraska.css
index 1da3bd289..ede7e69ca 100644
--- a/src/data/Web_Nebraska.css
+++ b/src/data/Web_Nebraska.css
@@ -5,7 +5,7 @@ Copyright Holder and License
GRAMPS Cascading Style Sheet
Style Name: Nebraska Default Stylesheet
Style Author: Jason M. Simanek (2008)
-$Id$
+
**************************************************************************************************
This website was created with GRAMPS
--------------------------------------------------------------------------------------------------
@@ -47,7 +47,11 @@ green #5D835F
-------------------------------------------------------------------------------------------- */
/* General Elements
------------------------------------------------------ */
+-----------------------------------------------------
+
+# $Id$
+
+*/
body {
color:#000;
margin:0;
diff --git a/src/data/Web_Print-Default.css b/src/data/Web_Print-Default.css
index 2768c9858..2e61c8664 100644
--- a/src/data/Web_Print-Default.css
+++ b/src/data/Web_Print-Default.css
@@ -6,7 +6,7 @@ GRAMPS Cascading Style Sheet
Style Name: Print Style Sheet
Style Author: Jason M. Simanek (2008)
Modified by Rob G. Healey, July 2008
-$Id$
+
**************************************************************************************************
This website was created with GRAMPS
--------------------------------------------------------------------------------------------------
@@ -45,7 +45,11 @@ white #FFF
-------------------------------------------------------------------------------------------- */
/* General Elements
------------------------------------------------------ */
+-----------------------------------------------------
+
+# $Id$
+
+*/
body {
color:#000;
margin:0;
diff --git a/src/data/Web_Visually.css b/src/data/Web_Visually.css
index 67ecb9937..e8fee970a 100644
--- a/src/data/Web_Visually.css
+++ b/src/data/Web_Visually.css
@@ -5,7 +5,6 @@ Copyright Holder and License
GRAMPS Cascading Style Sheet
Style Name: Visually Impaired Stylesheet
Style Author: Jason M. Simanek (2008)
-Modified by Rob G. Healey (C) 2008-2009
**************************************************************************************************
This website was created with GRAMPS
http://www.gramps-project.org
@@ -52,7 +51,11 @@ Females Web_Gender_Female.png
-------------------------------------------------------------------------------------------- */
/* General Elements
------------------------------------------------------ */
+-----------------------------------------------------
+
+# $Id$
+
+*/
body {
color:#000;
margin:0;
diff --git a/src/plugins/lib/libholiday.py b/src/plugins/lib/libholiday.py
index 014568925..434c8eeba 100644
--- a/src/plugins/lib/libholiday.py
+++ b/src/plugins/lib/libholiday.py
@@ -1,7 +1,8 @@
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2007 Donald N. Allingham
-# Copyright (C) 2008-2009 Brian G. Matherly
+# Copyright (C) 2008-2009 Brian G. Matherly
+# Copyright (C) 2009 Rob G. Healey
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -114,9 +115,24 @@ class HolidayTable:
self.__init_table()
def __find_holiday_files(self):
- """ Looks in multiple places for holidays.xml files """
+ """ Looks in multiple places for holidays.xml files
+ It will search for the file in user;s plugin directories first,
+ then it will search in program's plugins directories. """
+
holiday_file = 'holidays.xml'
+ # Look for holiday files in the user plugins directory and all
+ # subdirectories.
+ holiday_full_path = os.path.join(const.USER_PLUGINS, holiday_file)
+ if os.path.exists(holiday_full_path):
+ HolidayTable.__holiday_files.append(holiday_full_path)
+
+ for (dirpath, dirnames, filenames) in os.walk(const.USER_PLUGINS):
+ for directory in dirnames:
+ holiday_full_path = os.path.join(directory, holiday_file)
+ if os.path.exists(holiday_full_path):
+ HolidayTable.__holiday_files.append(holiday_full_path)
+
# Look for holiday files in the installation plugins directory and all
# subdirectories.
holiday_full_path = os.path.join(const.PLUGINS_DIR, holiday_file)
@@ -129,18 +145,6 @@ class HolidayTable:
if os.path.exists(holiday_full_path):
HolidayTable.__holiday_files.append(holiday_full_path)
- # Look for holiday files in the user plugins directory and all
- # subdirectories.
- holiday_full_path = os.path.join(const.USER_PLUGINS, holiday_file)
- if os.path.exists(holiday_full_path):
- HolidayTable.__holiday_files.append(holiday_full_path)
-
- for (dirpath, dirnames, filenames) in os.walk(const.USER_PLUGINS):
- for directory in dirnames:
- holiday_full_path = os.path.join(directory, holiday_file)
- if os.path.exists(holiday_full_path):
- HolidayTable.__holiday_files.append(holiday_full_path)
-
def __build_country_list(self):
""" Generate the list of countries that have holiday information. """
for holiday_file_path in HolidayTable.__holiday_files:
diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py
index c2ba7f5b0..db30afcee 100644
--- a/src/plugins/webreport/NarrativeWeb.py
+++ b/src/plugins/webreport/NarrativeWeb.py
@@ -78,6 +78,7 @@ import gen.lib
import const
from GrampsCfg import get_researcher
import Sort
+import GrampsLocale
from gen.plug import PluginManager
from gen.plug.menu import PersonOption, NumberOption, StringOption, \
BooleanOption, EnumeratedListOption, FilterOption, \
@@ -101,6 +102,8 @@ from gen.lib.eventroletype import EventRoleType
# constants
#
#------------------------------------------------------------------------
+_PERSON = 0
+_PLACE = 1
_INCLUDE_LIVING_VALUE = 99 # Arbitrary number
_NAME_COL = 3
@@ -236,7 +239,6 @@ def html_escape(text):
return text
-
def name_to_md5(text):
"""This creates an MD5 hex string to be used as filename."""
return md5(text).hexdigest()
@@ -245,7 +247,7 @@ class BasePage:
"""
This is the base class to write certain HTML pages.
"""
-
+
def __init__(self, report, title, gid=None):
"""
report - instance of NavWebReport
@@ -275,38 +277,6 @@ class BasePage:
self.linkhome = options['linkhome']
self.use_gallery = options['gallery']
- def alphabet_navigation(self, of, ind_list):
- """
- Will create the alphabetical navigation bar...
- """
-
- def get_alpha_list(ind_list):
- """ Will produce the active letters in the alphabet """
-
- firstletter_list = []
- for person_handle in ind_list:
- person = self.report.database.get_person_from_handle(person_handle)
- primary_name = person.get_primary_name()
-
- alpha_name = primary_name.get_surname()
-
- if alpha_name:
- alpha_ltr = alpha_name[0]
- if alpha_ltr not in firstletter_list:
- firstletter_list.append(alpha_ltr)
-
- firstletter_list.sort()
- return firstletter_list
-
- namedict = get_alpha_list(ind_list)
-
- of.write('\t\n')
- of.write('\t\t
\n')
- for ltr in namedict:
- of.write('\t\t\t- %s |
' % (ltr, ltr))
- of.write('\t\t
\n')
- of.write('\t
\n')
-
def write_footer(self, of):
of.write('\n') # Terminate div_content
@@ -355,7 +325,7 @@ class BasePage:
of.write('