diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 27c135579..1d9af2f96 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,13 @@ +2003-09-15 Alex Roitman + * src/plugins/WriteGedcom.py (cl_setup): Define newline char. + * src/plugins/WriteFtree.py: Provide command line interface. + * src/gramps_main.py (handle_args): Add function. Add WFT export + format; (cl_export): Add WFT format. + * doc/gramps.1.in: Update man page to reflect new format option. + * doc/gramps.1: Likewise. + * NEWS: Likewise. + * TODO: Add recently discussed items from gramps-devel. + 2003-09-14 Alex Roitman * src/SourceView.py (button_press,on_add_clicked,on_delete_clicked, on_edit_clicked): Pass parent window to the child dialog. diff --git a/gramps2/NEWS b/gramps2/NEWS index 3553d4fe3..3853650d6 100644 --- a/gramps2/NEWS +++ b/gramps2/NEWS @@ -30,7 +30,8 @@ Version 0.9.4 -- the "This used to bug me..." release * User can choose between the usual (left to right) or alternative (top to bottom) Family View. * Support for graphics in Book Report. -* Fair share of bug fixes. +* Command line option for exporting to the Web Family Tree (-f wtf). +* Dozens of bug fixes. Version 0.9.3 * New reports: Ancestors (text), Fan Chart (graphics), and diff --git a/gramps2/TODO b/gramps2/TODO index e838f89b7..659ccb938 100644 --- a/gramps2/TODO +++ b/gramps2/TODO @@ -1,7 +1,12 @@ -* Remember where the images are added from (RFE 748974). This is actually - very useful when you add 50 new images -- navigating 50 times to the same - place is a nightmare. All that's needed is keeping track of a single - last selected directory and then point gtk.FileSellector there. +* Add support for storing reliability (confidence) of the marriage information; + see http://sourceforge.net/mailarchive/forum.php?thread_id=3066997&forum_id=1993 + and http://sourceforge.net/mailarchive/forum.php?thread_id=3134931&forum_id=1993 + for the details. + +* Work out the model and the interface for the completeness of a person, + see http://sourceforge.net/mailarchive/forum.php?thread_id=3127454&forum_id=1993 + and http://sourceforge.net/mailarchive/forum.php?thread_id=3134932&forum_id=1993 + for the details. * Presense of Notes for a person/event/whatever_else. RFE 747527 suggested either a column in the People View or something like boldfaces "Notes" diff --git a/gramps2/doc/gramps.1 b/gramps2/doc/gramps.1 index cc747a7a4..91897754a 100644 --- a/gramps2/doc/gramps.1 +++ b/gramps2/doc/gramps.1 @@ -1,4 +1,4 @@ -.TH gramps 1 "0.9.3" "July 2003" "0.9.3" +.TH gramps 1 "0.9.4" "September 2003" "0.9.4" .SH NAME gramps \- Genealogical Research and Analysis Management Programming System. @@ -45,7 +45,8 @@ directory), \fBgedcom\fR (guessed if \fIFILENAME\fR ends with \fB.ged\fR), and .br Formats available for export are \fBgramps\fR, \fBgedcom\fR, \fBgramps\-pkg\fR, -and \fBiso\fR (never guessed, always specify with \fB\-f\fR option). +\fBwft\fR (guessed if \fIFILENAME\fR ends with \fB.wft\fR), and \fBiso\fR +(never guessed, always specify with \fB\-f\fR option). .TP .BI \-i " FILENAME" @@ -65,8 +66,8 @@ gramps IDs in the resulting database. .BI \-o " FILENAME" Export data into \fIFILENAME\fR. For \fBgramps\fR and \fBiso\fR formats, the \fIFILENAME\fR is actually the name of directory the gramps database will be -written into. For \fBgedcom\fR and \fBgramps\-pkg\fR, the \fIFILENAME\fR -is the name of the resulting file. +written into. For \fBgedcom\fR, \fBwft\fR, and \fBgramps\-pkg\fR, +the \fIFILENAME\fR is the name of the resulting file. .br When more than one output file is given, each has to be preceded @@ -106,11 +107,11 @@ of \fIstdout\fR and \fIstderr\fR to save messages and errors in files. .SH EXAMPLES .TP -To import three databases (whose formats can be determined from their names) and then check the resulting database for errors, one may type: -\fBgramps\fR \fB\-i\fR \fIfile1.ged\fR \fB\-i\fR \fIfile2.tgz\fR \fB\-i\fR \fI~/db3\fR \fB\-a\fR \fIcheck\fR +To import four databases (whose formats can be determined from their names) and then check the resulting database for errors, one may type: +\fBgramps\fR \fB\-i\fR \fIfile1.ged\fR \fB\-i\fR \fIfile2.tgz\fR \fB\-i\fR \fI~/db3\fR \fB\-i\fR \fIfile4.wft\fR \fB\-a\fR \fIcheck\fR .TP To explicitly specify the formats in the above example, append filenames with appropriate \fB\-f\fR options: -\fBgramps\fR \fB\-i\fR \fIfile1.ged\fR \fB\-f\fR \fIgedcom\fR \fB\-i\fR \fIfile2.tgz\fR \fB\-f\fR \fIgramps-pkg\fR \fB\-i\fR \fI~/dir3\fR \fB\-f\fR \fIgramps\fR \fB\-a\fR \fIcheck\fR +\fBgramps\fR \fB\-i\fR \fIfile1.ged\fR \fB\-f\fR \fIgedcom\fR \fB\-i\fR \fIfile2.tgz\fR \fB\-f\fR \fIgramps-pkg\fR \fB\-i\fR \fI~/db3\fR \fB\-f\fR \fIgramps\fR \fB\-i\fR \fIfile4.wft\fR \fB\-f\fR \fIwft\fR \fB\-a\fR \fIcheck\fR .TP To record the database resulting from all imports, supply \fB\-o\fR flag (use \fB\-f\fR if the filename does not allow gramps to guess the format): \fBgramps\fR \fB\-i\fR \fIfile1.ged\fR \fB\-i\fR \fIfile2.tgz\fR \fB\-o\fR \fI~/new-package\fR \fB\-f\fR \fIgramps-pkg\fR diff --git a/gramps2/doc/gramps.1.in b/gramps2/doc/gramps.1.in index 8ef994913..db5154b7e 100644 --- a/gramps2/doc/gramps.1.in +++ b/gramps2/doc/gramps.1.in @@ -1,4 +1,4 @@ -.TH gramps 1 "@VERSION@" "July 2003" "@VERSION@" +.TH gramps 1 "@VERSION@" "September 2003" "@VERSION@" .SH NAME gramps \- Genealogical Research and Analysis Management Programming System. @@ -45,7 +45,8 @@ directory), \fBgedcom\fR (guessed if \fIFILENAME\fR ends with \fB.ged\fR), and .br Formats available for export are \fBgramps\fR, \fBgedcom\fR, \fBgramps\-pkg\fR, -and \fBiso\fR (never guessed, always specify with \fB\-f\fR option). +\fBwft\fR (guessed if \fIFILENAME\fR ends with \fB.wft\fR), and \fBiso\fR +(never guessed, always specify with \fB\-f\fR option). .TP .BI \-i " FILENAME" @@ -65,8 +66,8 @@ gramps IDs in the resulting database. .BI \-o " FILENAME" Export data into \fIFILENAME\fR. For \fBgramps\fR and \fBiso\fR formats, the \fIFILENAME\fR is actually the name of directory the gramps database will be -written into. For \fBgedcom\fR and \fBgramps\-pkg\fR, the \fIFILENAME\fR -is the name of the resulting file. +written into. For \fBgedcom\fR, \fBwft\fR, and \fBgramps\-pkg\fR, +the \fIFILENAME\fR is the name of the resulting file. .br When more than one output file is given, each has to be preceded @@ -106,11 +107,11 @@ of \fIstdout\fR and \fIstderr\fR to save messages and errors in files. .SH EXAMPLES .TP -To import three databases (whose formats can be determined from their names) and then check the resulting database for errors, one may type: -\fBgramps\fR \fB\-i\fR \fIfile1.ged\fR \fB\-i\fR \fIfile2.tgz\fR \fB\-i\fR \fI~/db3\fR \fB\-a\fR \fIcheck\fR +To import four databases (whose formats can be determined from their names) and then check the resulting database for errors, one may type: +\fBgramps\fR \fB\-i\fR \fIfile1.ged\fR \fB\-i\fR \fIfile2.tgz\fR \fB\-i\fR \fI~/db3\fR \fB\-i\fR \fIfile4.wft\fR \fB\-a\fR \fIcheck\fR .TP To explicitly specify the formats in the above example, append filenames with appropriate \fB\-f\fR options: -\fBgramps\fR \fB\-i\fR \fIfile1.ged\fR \fB\-f\fR \fIgedcom\fR \fB\-i\fR \fIfile2.tgz\fR \fB\-f\fR \fIgramps-pkg\fR \fB\-i\fR \fI~/dir3\fR \fB\-f\fR \fIgramps\fR \fB\-a\fR \fIcheck\fR +\fBgramps\fR \fB\-i\fR \fIfile1.ged\fR \fB\-f\fR \fIgedcom\fR \fB\-i\fR \fIfile2.tgz\fR \fB\-f\fR \fIgramps-pkg\fR \fB\-i\fR \fI~/db3\fR \fB\-f\fR \fIgramps\fR \fB\-i\fR \fIfile4.wft\fR \fB\-f\fR \fIwft\fR \fB\-a\fR \fIcheck\fR .TP To record the database resulting from all imports, supply \fB\-o\fR flag (use \fB\-f\fR if the filename does not allow gramps to guess the format): \fBgramps\fR \fB\-i\fR \fIfile1.ged\fR \fB\-i\fR \fIfile2.tgz\fR \fB\-o\fR \fI~/new-package\fR \fB\-f\fR \fIgramps-pkg\fR diff --git a/gramps2/src/gramps_main.py b/gramps2/src/gramps_main.py index 2d4fc3c21..b891c17cb 100755 --- a/gramps2/src/gramps_main.py +++ b/gramps2/src/gramps_main.py @@ -154,120 +154,7 @@ class Gramps: self.init_interface() if args: - try: - options,leftargs = getopt.getopt(args, - const.shortopts,const.longopts) - except getopt.GetoptError,msg: - print "Error: %s. Exiting." % msg - os._exit(1) - except: - print "Error parsing arguments: %s " % args - if leftargs: - print "Unrecognized option: %s" % leftargs[0] - os._exit(1) - exports = [] - actions = [] - imports = [] - for opt_ix in range(len(options)): - o = options[opt_ix][0][1] - if o == '-': - continue - elif o == 'i': - fname = options[opt_ix][1] - if opt_ix