2008-01-15 Raphael Ackermann <raphael.ackermann@gmail.com>

* src/plugins/WriteCD.py
	* src/plugins/vcardexport.glade
	* src/plugins/ExportVCard.py
	* src/plugins/writeftree.glade
	* src/plugins/ExportCSV.py
	* src/plugins/csvexport.glade
	* src/plugins/vcalendarexport.glade
	* src/plugins/ExportVCalendar.py
	* src/plugins/genewebexport.glade
	* src/plugins/WriteGeneWeb.py
	* src/ExportAssistant.py
	* src/ExportOptions.py
	* src/ArgHandler.py
	work on mnemonics for export dialogues and doc string fixes

svn: r9855
This commit is contained in:
Raphael Ackermann
2008-01-16 21:42:05 +00:00
parent 57d376fca7
commit 719be42081
14 changed files with 115 additions and 81 deletions

View File

@@ -1,7 +1,7 @@
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2007 Douglas S. Blank
# Copyright (C) 2007-2008 Douglas S. Blank
# Copyright (C) 2004-2007 Donald N. Allingham
#
# This program is free software; you can redistribute it and/or modify
@@ -20,7 +20,7 @@
#
# $Id$
"Export to CSV Spreadsheet"
"Export to CSV Spreadsheet."
#-------------------------------------------------------------------------
#
@@ -93,9 +93,7 @@ def sortable_string_representation(text):
#
#-------------------------------------------------------------------------
class UTF8Recoder:
"""
Iterator that reads an encoded stream and reencodes the input to UTF-8
"""
"""Iterator that reads an encoded stream and reencodes the input to UTF-8."""
def __init__(self, f, encoding):
self.reader = codecs.getreader(encoding)(f)
@@ -107,8 +105,9 @@ class UTF8Recoder:
class UnicodeReader:
"""
A CSV reader which will iterate over lines in the CSV file "f",
which is encoded in the given encoding.
A CSV reader which will iterate over lines in the CSV file "f", which is
encoded in the given encoding.
"""
def __init__(self, f, encoding="utf-8", **kwds):
@@ -124,8 +123,9 @@ class UnicodeReader:
class UnicodeWriter:
"""
A CSV writer which will write rows to CSV file "f",
which is encoded in the given encoding.
A CSV writer which will write rows to CSV file "f", which is encoded in
the given encoding.
"""
def __init__(self, f, encoding="utf-8", **kwds):
@@ -163,6 +163,7 @@ class CSVWriterOptionBox:
"""
Create a VBox with the option widgets and define methods to retrieve
the options.
"""
def __init__(self,person):
self.person = person
@@ -498,7 +499,7 @@ class CSVWriter:
# Register all of the plugins
#
#-------------------------------------------------------------------------
_title = _('Comma Separated Values Spreadsheet (CSV)')
_title = _('Comma _Separated Values Spreadsheet (CSV)')
_description = _('CSV is a common spreadsheet format.')
_config = (_('CSV spreadsheet options'),CSVWriterOptionBox)
_filename = 'csv'

View File

@@ -20,7 +20,7 @@
#
# $Id$
"Export Events to vCalendar"
"Export Events to vCalendar."
#-------------------------------------------------------------------------
#
@@ -68,7 +68,8 @@ from PluginUtils import register_export
class CalendarWriterOptionBox:
"""
Create a VBox with the option widgets and define methods to retrieve
the options.
the options.
"""
def __init__(self, person):
self.person = person
@@ -347,7 +348,7 @@ def exportData(database, filename, person, option_box, callback=None):
#
#
#-------------------------------------------------------------------------
_title = _('vCalendar')
_title = _('vC_alendar')
_description = _('vCalendar is used in many calendaring and pim applications.')
_config = (_('vCalendar export options'), CalendarWriterOptionBox)
_filename = 'vcs'

View File

@@ -20,7 +20,7 @@
#
# $Id$
"Export Persons to vCard"
"Export Persons to vCard."
#-------------------------------------------------------------------------
#
@@ -64,7 +64,8 @@ from PluginUtils import register_export
class CardWriterOptionBox:
"""
Create a VBox with the option widgets and define methods to retrieve
the options.
the options.
"""
def __init__(self, person):
self.person = person
@@ -263,7 +264,7 @@ def exportData(database, filename, person, option_box, callback=None):
#
#
#-------------------------------------------------------------------------
_title = _('vCard')
_title = _('_vCard')
_description = _('vCard is used in many addressbook and pim applications.')
_config = (_('vCard export options'), CardWriterOptionBox)
_filename = 'vcf'

View File

@@ -20,7 +20,7 @@
# $Id$
"Export to CD (nautilus)"
"Export to CD (nautilus)."
#-------------------------------------------------------------------------
#
@@ -293,7 +293,7 @@ class PackageWriter:
# Register the plugin
#
#-------------------------------------------------------------------------
_title = _('Export to CD (p_ortable XML)')
_title = _('_Export to CD (portable XML)')
_description = _('Exporting to CD copies all your data and media '
'object files to the CD Creator. You may later burn the CD '
'with this data, and that copy will be completely portable '

View File

@@ -20,7 +20,7 @@
#
# $Id$
"Export to GeneWeb"
"Export to GeneWeb."
#-------------------------------------------------------------------------
#
@@ -67,7 +67,8 @@ from PluginUtils import register_export
class GeneWebWriterOptionBox:
"""
Create a VBox with the option widgets and define methods to retrieve
the options.
the options.
"""
def __init__(self, person):
self.person = person
@@ -440,7 +441,11 @@ class GeneWebWriter:
return retval
def get_full_person_info_fam(self, person):
"""Output full person data of a family member only if the person is not listed as a child"""
"""Output full person data of a family member.
This is only done if the person is not listed as a child.
"""
retval = ""
if self.persons_details_done.count(person.get_handle()) == 0:
is_child = 0
@@ -456,7 +461,7 @@ class GeneWebWriter:
def get_full_person_info_child(self, person):
"""Output full person data for a child, if not printed somewhere else"""
"""Output full person data for a child, if not printed somewhere else."""
retval = ""
if self.persons_details_done.count(person.get_handle()) == 0:
self.persons_details_done.append(person.get_handle())
@@ -633,7 +638,7 @@ def exportData(database,filename,person,option_box,callback=None):
#
#
#-------------------------------------------------------------------------
_title = _('G_eneWeb')
_title = _('_GeneWeb')
_description = _('GeneWeb is a web based genealogy program.')
_config = (_('GeneWeb export options'), GeneWebWriterOptionBox)
_filename = 'gw'

View File

@@ -136,7 +136,7 @@
<child>
<widget class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="label" translatable="yes">_Filter:</property>
<property name="label" translatable="yes">Filt_er:</property>
<property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
@@ -241,7 +241,7 @@
<widget class="GtkCheckButton" id="individuals">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">_Individuals</property>
<property name="label" translatable="yes">I_ndividuals</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>

View File

@@ -123,7 +123,7 @@
<child>
<widget class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="label" translatable="yes">_Filter:</property>
<property name="label" translatable="yes">Filt_er:</property>
<property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
@@ -322,7 +322,7 @@
<widget class="GtkCheckButton" id="images">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">R_eference images from path: </property>
<property name="label" translatable="yes">Reference i_mages from path: </property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>

View File

@@ -123,7 +123,7 @@
<child>
<widget class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="label" translatable="yes">_Filter:</property>
<property name="label" translatable="yes">Filt_er:</property>
<property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>

View File

@@ -123,7 +123,7 @@
<child>
<widget class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="label" translatable="yes">_Filter:</property>
<property name="label" translatable="yes">Filt_er:</property>
<property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>

View File

@@ -144,7 +144,7 @@
<child>
<widget class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="label" translatable="yes">_Filter:</property>
<property name="label" translatable="yes">Filt_er:</property>
<property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>