Commit Graph

15 Commits

Author SHA1 Message Date
Gerald Britton
1f2469b09f Simplify with built-in functions where possible. e.g.
change [x for x in y if x] to filter(None, y)
change [f(x) for x in y] to map(f, x)
change [x for x in y] to list(y)

These changes reduce source code size and complexity and produce some minor performance gains

svn: r14104
2010-01-21 18:42:53 +00:00
Doug Blank
0f20544be3 Changes to allow GrampsDb tests to run
svn: r13893
2009-12-23 15:48:01 +00:00
Gerald Britton
2671a8cd50 Replace "== None" and "!= None" with "is None" and "is not None", respectively
svn: r12098
2009-02-23 19:11:46 +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
e9c1b1de89 Remove GRDB export code. GRDB export is not supported.
svn: r11144
2008-10-14 11:54:42 +00:00
Raphael Ackermann
c962d5e6e1 2008-02-22 Raphael Ackermann <raphael.ackermann@gmail.com>
* various (294 files)
	pep8 doc fixes & pylint fixes

svn: r10103
2008-02-24 13:55:55 +00:00
Richard Taylor
190d20fcee fix test case to work with reindex_reference_map
svn: r7795
2006-12-13 10:03:52 +00:00
Alex Roitman
9aeb975d1c * test/GrampsDb/GrampsDbBase_Test.py (test_reindex_reference_map):
Properly define lambda to fake the _update_reference_map method.


svn: r7678
2006-11-24 05:39:14 +00:00
Alex Roitman
5dd18318f9 2006-11-23 Alex Roitman <shura@gramps-project.org>
* test/GrampsDb/GrampsDbTestBase.py (tearDown): Close database at
	the end of test.



svn: r7677
2006-11-24 05:21:57 +00:00
Don Allingham
220ccd309a 2006-11-15 Don Allingham <don@gramps-project.org>
* data/gramps.schemas.in: default transactions to off
	* src/Config/_GrampsConfigKeys.py: default transaction to off
	* src/Editors/_EditFamily.py: remove dead code
	* src/plugins/DetDescendantReport.py: remove dead code



svn: r7631
2006-11-16 04:02:28 +00:00
Martin Hawlisch
682ea93e48 * test/GrampsDb/GrampsDbTestBase.py: Provide a callback to db.load(). Hmmm, that worked without sometime back.
svn: r7615
2006-11-11 21:46:22 +00:00
Richard Taylor
f6ae3f18c2 add test code for cursor
svn: r5958
2006-02-19 16:11:18 +00:00
Richard Taylor
90247368d9 make ref update optional
svn: r5780
2006-01-17 21:10:20 +00:00
Richard Taylor
b2b6cb0ad5 * src/EditPlace.py: changed display_references to use find_backlink_handles
* src/EditRepository.py: modified to use  find_backlink_handles and fixed subtle bug
	* src/RelLib/_Source.py: added reporef_list to referent object lists so that backref
	are put in reference_map
	* test/GrampsDb/GrampsDbBase_Test.py: added unittest for source/reference backlinks
	* test/GrampsDb/GrampsDbTestBase.py: added unittest for source/reference backlinks


svn: r5616
2005-12-22 12:02:06 +00:00
Richard Taylor
9eb1f99b86 move database code into new package
svn: r5598
2005-12-21 11:27:05 +00:00