* src/ArgHandler.py: Do actions prior to exports.

* doc/gramps.1.in: Document new execution order.


svn: r5280
This commit is contained in:
Alex Roitman 2005-10-06 19:49:25 +00:00
parent 95c876e51d
commit 2d81701115
3 changed files with 8 additions and 6 deletions

View File

@ -2,6 +2,8 @@
* src/TreeTips.py: Typo. * src/TreeTips.py: Typo.
* src/plugins/ScratchPad.py: Convert to new API. * src/plugins/ScratchPad.py: Convert to new API.
* src/plugins/DumpGenderStats.py: Convert to new API. * src/plugins/DumpGenderStats.py: Convert to new API.
* src/ArgHandler.py: Do actions prior to exports.
* doc/gramps.1.in: Document new execution order.
2005-10-06 Stefan Bjork <skalman@acc.umu.se> 2005-10-06 Stefan Bjork <skalman@acc.umu.se>
* src/plugins/rel_sv.py: Obviosly, level=1 to get_parents means * src/plugins/rel_sv.py: Obviosly, level=1 to get_parents means

View File

@ -174,8 +174,8 @@ exports, and actions specified further on the command line by using \fB\-i\fR,
.LP .LP
The order of \fB\-i\fR, \fB\-o\fR, or \fB\-a\fR options does not matter. The The order of \fB\-i\fR, \fB\-o\fR, or \fB\-a\fR options does not matter. The
actual order always is: all imports (if any) -> all exports (if any) -> actual order always is: all imports (if any) -> all actions (if any)
all actions (if any). But opening must always be first! -> all exports (if any). But opening must always be first!
.LP .LP
If no \fB\-O\fR or \fB\-i\fR option is given, gramps will launch its main If no \fB\-O\fR or \fB\-i\fR option is given, gramps will launch its main

View File

@ -385,16 +385,16 @@ class ArgHandler:
print "Launching interactive session..." print "Launching interactive session..."
if self.parent.cl: if self.parent.cl:
for expt in self.exports:
print "Exporting: file %s, format %s." % expt
self.cl_export(expt[0],expt[1])
for (action,options_str) in self.actions: for (action,options_str) in self.actions:
print "Performing action: %s." % action print "Performing action: %s." % action
if options_str: if options_str:
print "Using options string: %s" % options_str print "Using options string: %s" % options_str
self.cl_action(action,options_str) self.cl_action(action,options_str)
for expt in self.exports:
print "Exporting: file %s, format %s." % expt
self.cl_export(expt[0],expt[1])
print "Cleaning up." print "Cleaning up."
# remove import db after use # remove import db after use
self.parent.db.close() self.parent.db.close()