* various: const.py changes
2007-09-07 Don Allingham <don@gramps-project.org> * src/DateHandler/_Date_fr.py: fix indentation errors 2007-09-07 Don Allingham <don@gramps-project.org> svn: r8948
This commit is contained in:
@@ -229,8 +229,8 @@ class WebReport(Report):
|
||||
|
||||
def get_holidays(self, year, country = "United States"):
|
||||
""" Looks in multiple places for holidays.xml files """
|
||||
locations = [const.pluginsDir,
|
||||
os.path.join(const.home_dir,"plugins")]
|
||||
locations = [const.PLUGINS_DIR,
|
||||
os.path.join(const.HOME_DIR,"plugins")]
|
||||
holiday_file = 'holidays.xml'
|
||||
for dir in locations:
|
||||
holiday_full_path = os.path.join(dir, holiday_file)
|
||||
@@ -663,7 +663,7 @@ class WebReportOptions(ReportOptions):
|
||||
# Options specific for this report
|
||||
self.options_dict = {
|
||||
'WCfilter' : 0,
|
||||
'WCod' : os.path.join(const.user_home,"WEBCAL"),
|
||||
'WCod' : os.path.join(const.USER_HOME,"WEBCAL"),
|
||||
'WCcopyright' : 0,
|
||||
'WCtitle' : _('My Family Calendar'),
|
||||
'WCext' : 'html',
|
||||
@@ -1304,8 +1304,8 @@ class Holidays:
|
||||
|
||||
def get_countries():
|
||||
""" Looks in multiple places for holidays.xml files """
|
||||
locations = [const.pluginsDir,
|
||||
os.path.join(const.home_dir,"plugins")]
|
||||
locations = [const.PLUGINS_DIR,
|
||||
os.path.join(const.HOME_DIR,"plugins")]
|
||||
holiday_file = 'holidays.xml'
|
||||
country_list = []
|
||||
for dir in locations:
|
||||
|
Reference in New Issue
Block a user