Gerald Britton
021b754939
Bug 3011: change old-style classes to new-style classes
...
svn: r12559
2009-05-21 17:19:50 +00:00
Benny Malengier
90657dd664
2522: -o didn't write an output file : replaced by -e
...
svn: r12313
2009-03-11 11:06:51 +00:00
Doug Blank
2672033648
Missing -e and -L in const, and missing -o and -u in ArgHandler
...
svn: r11356
2008-11-28 19:21:20 +00:00
Doug Blank
d204926dfd
Fixed typo in -L to list details of database
...
svn: r11355
2008-11-28 16:45:36 +00:00
Brian Matherly
2e9a488e3e
Refactor export plugin framework. All importers and exporters are now plugins.
...
svn: r11243
2008-11-04 04:12:51 +00:00
Brian Matherly
dfd426e5ca
Move the contents of "_GrampsBSDDB.py" into "ReadGrdb.py" because that is the only place it is used. Then, rename "ReadGrdb.py" to "plugins/ImportGrdb.py" for consistency. Also clean up misc import related code.
...
svn: r11173
2008-10-21 04:22:45 +00:00
Brian Matherly
5f7ef33cdc
Remove GrampsDbUtils/importdbdir.py. You can't import database directories from the GUI,and there is no need to import them from the CLI. You can still open a database directory from the CLI.
...
svn: r11145
2008-10-15 03:29:41 +00:00
Brian Matherly
9c364490ce
Move PluginUtils/_PluginMgr.py to gen/plug/_manager.py. Now, instead of "from PluginUtils import PluginManager", use "from gen.plug import PluginManager".
...
svn: r11100
2008-10-02 04:02:10 +00:00
Brian Matherly
c1ca1e3ee9
Refactor the open and import process. Also fixes 0002301: Fails to import from the command-line
...
svn: r11060
2008-09-14 21:18:25 +00:00
Brian Matherly
3afbd461c0
Put all the plugin management and registration stuff into a class. This new class is named PluginManager. It is a Singleton so that everyone gets access to the same plugin information.
...
svn: r10741
2008-05-18 19:24:28 +00:00
Doug Blank
069fc653e3
0002019: Proposal to show person count and DB version --- this just adds a new command line flag, -L to show additional details
...
svn: r10603
2008-04-20 05:48:49 +00:00
Doug Blank
28345ea6ca
Oops: remove changes I did not mean to commit
...
svn: r10537
2008-04-10 01:41:47 +00:00
Doug Blank
ec6efb6a95
Added some temp files to svn ignore
...
svn: r10536
2008-04-10 01:37:31 +00:00
Brian Matherly
16799c2465
Improvements to CLI reports -
...
0001824: Bug in command line - gramps does not show right error.
0001821: A command "python src/gramps.py --open=DG1 --action=report" cause a crash
Fix help strings.
svn: r10122
2008-02-26 04:32:57 +00:00
Raphael Ackermann
46dad9bae3
2008-02-25 Raphael Ackermann <raphael.ackermann@gmail.com>
...
* src/ReportBase/_ArgHandler.py (ArgHandler.cl_action): improve output
when no report or tool name is given. Remove call to sys.exit(1) as it
means that gui error report handler is called (locks db).
addresses part of #0001821
svn: r10118
2008-02-25 10:05:15 +00:00
Raphael Ackermann
0f8aaff690
2008-02-25 Łukasz Rymarczyk <yenidai(at)poczta(dot)onet(dot)pl>
...
* src/ArgHandler.py: add UI Report Names to output
0001826: Command line - viewing available reports nicer to read
svn: r10116
2008-02-25 08:10:19 +00:00
Raphael Ackermann
90f883e46d
2008-02-18 Raphael Ackermann <raphael.ackermann@gmail.com>
...
* src/* 143 files
* test/try_tree_model.py
* windows/nsis/gcheck.py
imports cleanup
svn: r10055
2008-02-18 20:07:09 +00:00
Raphael Ackermann
17ce1638d2
2008-02-18 Raphael Ackermann <raphael.ackermann@gmail.com>
...
* src/GrampsDbUtils/_GedcomParse.py: remove encode_filename() as filename
is already unicode encoded.
* src/GrampsDbUtils/_GrampsDbWRFactories.py: doc fix
* src/GrampsDbUtils/_ReadGedcom.py: doc and pylint fixes
* src/GrampsDbUtils/importdbdir.py: pep8 fix ''' --> """
* src/ArgHandler.py: in method cl_import(self, filename, format): add call
filename = Utils.get_unicode_path(filename) before calling
ReadGedcom._import2(...,filename,...). +pylint fixes
* src/DbLoader.py: doc fix. change variable choose to choose_db_dialog
svn: r10047
2008-02-18 12:31:31 +00:00
Raphael Ackermann
de5edf9f29
2008-02-18 Raphael Ackermann <raphael.ackermann@gmail.com>
...
* src/DataViews/PersonView.py
* src/ViewManager.py
* src/GrampsCfg.py
* src/plugins/WriteCD.py
* src/plugins/FindDupes.py
* src/Merge/_MergePerson.py
* src/DbManager.py
* src/ArgHandler.py
* src/docgen/HtmlDoc.py
* src/DbLoader.py
use from QuestionDialog import ErrorDialog etc to bring in line with
rest of gramps
* src/Editors/_EditPrimary.py: EditPrimary._uses_duplicate_id() check
for duplicates and give error dialog if id is already used. #0001347
* src/Editors/_EditFamily.py: EditFamily.__do_save(), add call to
_uses_duplicate_id(). #0001347
svn: r10046
2008-02-18 10:09:50 +00:00
Benny Malengier
f37918ad3a
2008-01-28 Benny Malengier <benny.malengier@gramps-project.org>
...
* src/ArgHandler.py:
* src/DbManager.py:
* src/const.py.in: run ./autogen !!
fix #1445 , don't open locked/unrepaired dbs, new option -u to unlock
svn: r9944
2008-01-28 11:16:54 +00:00
Raphael Ackermann
a5737884cd
2008-01-17 Raphael Ackermann <raphael.ackermann@gmail.com>
...
* src/ArgHandler.py: 0001588: -a summary does nothing
svn: r9865
2008-01-17 11:35:15 +00:00
Raphael Ackermann
719be42081
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
2008-01-16 21:42:05 +00:00
Benny Malengier
57d376fca7
add l arg to help
...
svn: r9854
2008-01-16 20:25:34 +00:00
Benny Malengier
4172c30406
2008-01-16 Benny Malengier <benny.malengier@gramps-project.org>
...
* src/ArgHandler.py: don't crash arghandler on wrong input #1592
* src/const.py.in: Add -h and --help so those work for non gnome users
svn: r9853
2008-01-16 20:23:20 +00:00
Benny Malengier
2bcdc69ce5
2008-01-15 Benny Malengier <benny.malengier@gramps-project.org>
...
* src/ArgHandler.py: on autoload, do some extra checks first.
svn: r9813
2008-01-15 09:21:13 +00:00
Raphael Ackermann
b7c7952058
2008-01-09 Raphael Ackermann <raphael.ackermann@gmail.com>
...
svn: r9760
2008-01-09 06:45:15 +00:00
Benny Malengier
a9619bab5f
2008-01-08 Benny Malengier <benny.malengier@gramps-project.org>
...
* src/ArgHandler.py: bug with tarfile exceptions
svn: r9753
2008-01-08 19:13:54 +00:00
Benny Malengier
fb60df120a
2007-12-29 Benny Malengier <benny.malengier@gramps-project.org>
...
* src/ArgHandler.py: better handling of -l
* src/const.py.in: forgot to commit this, new constants
* configure.in: remove GrampsDb makefile
* src/DbManager.py: allow inheriting create_new_db_cli
svn: r9625
2007-12-29 14:47:38 +00:00
Benny Malengier
dc9f03b6c0
2007-12-28 Benny Malengier <benny.malengier@gramps-project.org>
...
* src/ViewManager.py: remove unused functions, add alt actions left/right
* src/GrampsDb: deleted with _GrampsDbWriteXML.py,
_GrampsDbFactories.py, _GrampsGEDDB.py, _GrampsXMLDB.py,
__init__.py, Makefile.am, _GrampsInMemDB.py, _GrampsBSDDB.py.
No more inmemory databases
* src/GrampsDbUtils: moved here _GrampsDbWriteXML.py and _GrampsBSDDB.py
* src/plugins/ReadGrdb.py:
* src/plugins/Checkpoint.py:
* src/ObjectSelector/_ObjectSelectorWindow.py:
* src/DbManager.py:
* src/GrampsDbUtils/_WriteGrdb.py:
* src/GrampsDbUtils/__init__.py:
* src/GrampsDbUtils/_GrampsDbWRFactories.py:
* src/GrampsDbUtils/_WriteXML.py:
* src/GrampsDbUtils/Makefile.am:
* src/gramps_main.py:
* src/RecentFiles.py: recent-files-gramps.xml, don't overwrite 2.2.x data
* src/ArgHandler.py:
* src/DbLoader.py: remove unused functions
* src/Makefile.am:
* po/POTFILES.in:
* src/GrampsDbUtils/importdbdir.py: allow import of new database via cli
Remove inMem Editing, move remaining to DbUtils, fix ArgHandler
svn: r9613
2007-12-28 15:09:01 +00:00
Doug Blank
0aba9e8e2b
* src/ViewManager.py: exposed a private method via a new method,
...
post_load_newdb()
* src/ArgHandler.py: made ArgHandler.handle_args() return filename,
and filetype, if commandline or recentfile
* src/gramps_main.py: handles return values from AH.handle_args()
2007-12-10 Douglas S. Blank <dblank@cs.brynmawr.edu>
svn: r9486
2007-12-11 02:49:58 +00:00
James G Sack
63a3f8479b
switch CLI import to TEMP_DIR location; see new Utils functs
...
svn: r9409
2007-11-26 05:41:04 +00:00
James G Sack
88f23700a0
#1397 add GrampsDbException handler in CLI import path (grdb not handled)
...
svn: r9406
2007-11-26 04:43:00 +00:00
Martin Hawlisch
802f0eb33f
Trying to fix unicode filename handling on Windows. Patch ported from 2.2.
...
svn: r9354
2007-11-16 16:45:45 +00:00
James G Sack
2d2bebdf5d
fix Bug 1358 CLI leftovers
...
svn: r9331
2007-11-11 18:25:01 +00:00
James G Sack
3ce249d923
CLI fixup: bugs 1331,2,3,4
...
svn: r9286
2007-10-31 21:47:58 +00:00
Benny Malengier
bb5c01c602
read recent file is broken in GRAMPS 30 ! DISABLE
...
svn: r9000
2007-09-23 18:26:09 +00:00
Don Allingham
a65a73d1d7
* 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
2007-09-08 05:54:02 +00:00
Don Allingham
afef83a33a
* src/GrampsDbUtils/_WriteGedcom.py: pylint cleanup
...
* src/GrampsDbUtils/_GedcomParse.py: fix child references
* src/ArgHandler.py: fix calling sequence for gedcom
2007-09-05 Don Allingham <don@gramps-project.org>
svn: r8931
2007-09-06 04:36:04 +00:00
Don Allingham
150a0fc05d
svn: r8540
2007-06-13 02:27:31 +00:00
Don Allingham
c730a8f5c4
2007-06-12 Don Allingham <don@gramps-project.org>
...
* src/ViewManager.py: detection and recovery from db errors
* src/GrampsDb/_GrampsDBDir.py: detection and recovery from db errors
* src/GrampsDb/_GrampsBSDDB.py: detection and recovery from db errors
* src/DbManager.py: detection and recovery from db errors
* src/DbState.py: detection and recovery from db errors
* src/ArgHandler.py: detection and recovery from db errors
svn: r8539
2007-06-12 23:31:40 +00:00
Don Allingham
2002d9a1ba
2007-03-29 Don Allingham <don@gramps-project.org>
...
* src/ViewManager.py: load previous db if requested
* src/gramps_main.py: load previous db if requested
* src/ArgHandler.py: load previous db if requested
svn: r8340
2007-03-30 04:23:46 +00:00
Don Allingham
d20b4833f9
2007-03-24 Don Allingham <don@gramps-project.org>
...
* src/ViewManager.py: add support for new directory type
* src/GrampsDb/_GrampsDbBase.py: use normal pickle encoding
* src/GrampsDb/_GrampsDBDir.py: new directory based type
* src/GrampsDb/_GrampsDbFactories.py: add support for new directory type
* src/Editors/_EditNote.py: only update on save
* src/Selectors/_SelectPerson.py: use normal columns
* src/GrampsDbUtils/_ReadGedcom.py: add support for new directory type
* src/GrampsDbUtils/__init__.py: add support for new directory type
* src/GrampsDbUtils/_Backup.py: fast pickle based backup
* src/ArgHandler.py: add support for new directory type
svn: r8313
2007-03-25 02:25:37 +00:00
Kees Bakker
e92a5979a8
Use the normal sys.exit() instead of os._exit() because the latter will
...
not flush any output. Also catch the SysExit exceptions in gramps.py and
do a gtk.main_quit() just to be sure. This all is to make commandline
processing usable.
svn: r8308
2007-03-20 19:21:41 +00:00
Don Allingham
0d778ae075
2007-03-18 Don Allingham <don@gramps-project.org>
...
* src/ViewManager.py: use tooltips for buttons when text disabled (bug 959)
* src/Editors/_EditSourceRef.py: fix help button (bug 960), delete the cancel
on the comment tab.
* src/Editors/_EditReference.py: make sure help button is sensitive if used.
* src/GrampsDbUtils/_GedcomParse.py: check for UTF16 BOM
* src/ArgHandler.py: use STOCK_NEW for create of db (bug 947)
* src/DbLoader.py: use STOCK_NEW for create of db (bug 947)
svn: r8304
2007-03-19 04:19:49 +00:00
Zsolt Foldvari
bccf5acf4c
2007-02-21 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
...
* src/MarkupText.py: raise error in case of parsing failure.
* src/const.py.in: add argument support for debug switch.
* src/ArgHandler.py (parse_arg): handle debug switch argument.
svn: r8207
2007-02-21 16:20:55 +00:00
Zsolt Foldvari
4cd6d41f79
* src/MarkupText.py: cleanup
...
* src/DisplayTabs/_NoteTab.py (build_interface): debug log
* src/const.py.in: add new command line arg '-d,--debug'
* src/gramps.py (setup_logging): change root logger default level
to WARNING
* src/ArgHandler.py (parse_arg): handle command line arg: debug
2007-02-12 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
svn: r8093
2007-02-12 22:33:03 +00:00
Don Allingham
fc666133b7
2007-02-10 Don Allingham <don@gramps-project.org>
...
* src/GrampsDb/_GrampsGEDDB.py: new GEDCOM parser module
* src/RelLib/_BaseObject.py: new GEDCOM parser module
* src/RelLib/_AttributeBase.py: new GEDCOM parser module
* src/plugins/PHPGedViewConnector.py: new GEDCOM parser module
* src/GrampsDbUtils/_GedcomParse.py: new GEDCOM parser module
* src/GrampsDbUtils/__init__.py: new GEDCOM parser module
* src/GrampsDbUtils/_GedcomLex.py: new GEDCOM parser module
* src/GrampsDbUtils/_GrampsDbWRFactories.py: new GEDCOM parser module
* src/GrampsDbUtils/_GedcomTokens.py: renamed from _GedTokens.py
* src/GrampsDbUtils/Makefile.am: new GEDCOM parser module
* src/ArgHandler.py: new GEDCOM parser module
* example/gedcom/sample.ged: added test cases
* src/docgen/OpenOfficeDoc.py: remove unused functions
* src/docgen/HtmlDoc.py: remove unused functions
* src/docgen/LPRDoc.py: remove unused functions
* src/docgen/ODFDoc.py: remove unused functions
svn: r8083
2007-02-11 06:03:29 +00:00
Richard Taylor
f96b6f5dc2
refactor GrampsDb and clean RelLib deps.
...
svn: r8032
2007-02-03 17:11:05 +00:00
Don Allingham
2bf872a8c3
2007-01-24 Don Allingham <don@gramps-project.org>
...
* src/Editors/_EditSourceRef.py: remove debug statements
* src/AddMedia.py: remove debug statements
* src/ArgHandler.py: remove debug statements
svn: r7980
2007-01-25 05:37:24 +00:00
Don Allingham
c43c32a644
2007-01-22 Don Allingham <don@gramps-project.org>
...
* src/ViewManager.py: import of gramps package
* src/ArgHandler.py: import of gramps package
* src/GrampsDb/_ReadGedcom.py: catch bad LDS ords
svn: r7955
2007-01-22 17:51:43 +00:00