* 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:
Don Allingham
2007-09-08 05:54:02 +00:00
parent afb2bbc201
commit a65a73d1d7
104 changed files with 390 additions and 395 deletions

View File

@@ -115,7 +115,7 @@ class CommandLineReport:
self.options_help['id'].append(False)
self.option_class.handler.output = self.options_dict['of']
self.options_help['of'].append(os.path.join(const.user_home,
self.options_help['of'].append(os.path.join(const.USER_HOME,
"whatever_name"))
if self.category == CATEGORY_TEXT:
@@ -161,7 +161,7 @@ class CommandLineReport:
self.options_help['papero'].append(False)
self.template_name = self.options_dict['template']
self.options_help['template'].append(os.path.join(const.user_home,
self.options_help['template'].append(os.path.join(const.USER_HOME,
"whatever_name"))
if self.category in (CATEGORY_TEXT,CATEGORY_DRAW):

View File

@@ -175,7 +175,7 @@ class PageSizeParser(handler.ContentHandler):
try:
parser = make_parser()
parser.setContentHandler(PageSizeParser(paper_sizes))
the_file = open(const.papersize)
the_file = open(const.PAPERSIZE)
parser.parse(the_file)
the_file.close()
paper_sizes.append(BaseDoc.PaperSize(_("Custom Size"),-1,-1))

View File

@@ -576,7 +576,7 @@ class ReportDialog(BareReportDialog):
if text == _user_template:
self.template_name = self.html_fileentry.get_full_path(0)
else:
self.template_name = "%s%s%s" % (const.template_dir,os.path.sep,
self.template_name = "%s%s%s" % (const.TEMPLATE_DIR,os.path.sep,
_template_map[text])
else:
self.template_name = ""

View File

@@ -363,7 +363,7 @@ class OptionHandler(_Options.OptionHandler):
def init_subclass(self):
self.collection_class = OptionListCollection
self.list_class = OptionList
self.filename = const.report_options
self.filename = const.REPORT_OPTIONS
def init_common(self):
"""

View File

@@ -78,7 +78,7 @@ class StyleListDisplay:
self.callback = callback
self.sheetlist = stylesheetlist
self.top = gtk.glade.XML(const.gladeFile, "styles", "gramps")
self.top = gtk.glade.XML(const.GLADE_FILE, "styles", "gramps")
self.window = self.top.get_widget('styles')
ManagedWindow.set_titles( self.window,
@@ -190,7 +190,7 @@ class StyleEditor:
self.style = BaseDoc.StyleSheet(style)
self.parent = parent
self.top = gtk.glade.XML(const.gladeFile, "editor", "gramps")
self.top = gtk.glade.XML(const.GLADE_FILE, "editor", "gramps")
self.top.signal_autoconnect({
"on_save_style_clicked" : self.on_save_style_clicked,

View File

@@ -92,8 +92,8 @@ _template_map = {
_user_template : ""
}
try:
template_path = const.template_dir
xmlfile = os.path.join(const.template_dir,"templates.xml")
template_path = const.TEMPLATE_DIR
xmlfile = os.path.join(const.TEMPLATE_DIR,"templates.xml")
if os.path.isfile(xmlfile):
parser = make_parser()
@@ -102,7 +102,7 @@ try:
parser.parse(the_file)
the_file.close()
template_path = os.path.join(const.home_dir,"templates")
template_path = os.path.join(const.HOME_DIR,"templates")
xmlfile = os.path.join(template_path,"templates.xml")
if os.path.isfile(xmlfile):
parser = make_parser()