Gerald Britton
941fff23ae
Tweaks to use inplace arithmetic
...
svn: r13191
2009-09-10 18:49:48 +00:00
Gerald Britton
d5e48cda06
Change to set logic for reduction in storage (no affect on runtime)
...
svn: r13190
2009-09-10 18:49:13 +00:00
Gerald Britton
03dc41bff9
Documentation updates
...
svn: r13183
2009-09-09 14:43:55 +00:00
Gerald Britton
768ea89a0f
Remove deprecated method
...
svn: r13164
2009-09-07 16:22:12 +00:00
Gerald Britton
54d4bf6134
Add function decorator to catch dabatase errors
...
svn: r13163
2009-09-07 16:19:59 +00:00
Gerald Britton
be1aaf9f7b
restore set_name_group_mapping method
...
svn: r13161
2009-09-05 23:03:31 +00:00
Gerald Britton
06458ae1d7
Remove unused methods
...
svn: r13159
2009-09-04 17:57:00 +00:00
Gerald Britton
20bfbc8719
add from __future__ import with_statement
...
svn: r13158
2009-09-04 17:20:37 +00:00
Gerald Britton
ee9f1e82e0
Tweaks to database objects plus initial documentation in rst format
...
svn: r13157
2009-09-03 19:44:01 +00:00
Gerald Britton
3564b04584
1. Implement iter_<object> methods in proxybase.
...
2. Change include_object to include_media_object to avoid confusion
3. Make _validated_id_prefix method in read.py a staticmethod
4. Use new iter_<objects> methods in Records.py, StatsgGramplet.py, GivenNameGramplet.py, ExtractCity.py and _IsSiblingOfFilterMatch.py as examples
svn: r13151
2009-09-02 20:10:45 +00:00
Gerald Britton
5fc1618a85
1. Use closures to define iterator methods
...
2. Change sorts on people and places to work like other sorts
svn: r13149
2009-09-01 17:46:08 +00:00
Gerald Britton
00d6b8cd50
Fix write.py to do imports from gen.db
...
svn: r13148
2009-09-01 17:43:54 +00:00
Gerald Britton
4e8f59c4bd
grampsdbtxn.py module renamed to txn.py
...
svn: r13141
2009-08-31 19:07:41 +00:00
Gerald Britton
03ee012325
Implement performance-enhanced proxy databases
...
svn: r13140
2009-08-31 18:43:05 +00:00
Gerald Britton
1587cb8ad1
Implement restructured database objects
...
svn: r13139
2009-08-31 18:42:29 +00:00
Benny Malengier
43663bbee7
Start with fix up of connects to db in relationview.
...
Fix calling method of signals to a shorter algorithm based on lambda
func
svn: r13115
2009-08-24 21:44:15 +00:00
Gerald Britton
ae404f496f
Latest updates to new modules
...
svn: r13101
2009-08-21 20:06:11 +00:00
Peter Landgren
6966e7211a
unicode text must be sliced correctly.
...
svn: r13089
2009-08-20 12:40:38 +00:00
Benny Malengier
5700f6ab66
2863: Wrong row when dropping on embedded list
...
This patch makes sure open of old database shows correct columns, and
adds ... if several main participants
svn: r13085
2009-08-20 09:31:10 +00:00
Benny Malengier
5f0c935256
2773: Primary participant(s) in Events View
...
svn: r13083
2009-08-19 22:27:06 +00:00
Gerald Britton
5b8bc47bce
Update makefile to add new modules
...
svn: r13080
2009-08-19 20:30:40 +00:00
Gerald Britton
b4b9675feb
cursor.py -- add additional methods mirroring those in DBCursor and a getattr method to pass through non-overridden method calls to DBCursor
...
svn: r13079
2009-08-19 17:14:32 +00:00
Gerald Britton
c8f7bf0c69
Add new modules to support restructured database objects
...
bsddbtxn.py -- Wrapper for BSDDB DBTxn to support context manager protocol
txn.py -- GrampsDbTxn class to manage atomic transactions
write.py -- GrampsDbWrite class for read/write databases
read.py -- GrampsDbRead class for read-only databases
undoredo.py -- GrampsDbUndo class to manage the undo database
upgrade.py -- Helper module for upgrading a database at open time
svn: r13078
2009-08-19 17:05:39 +00:00
Raphael Ackermann
30d6eebd0b
0002542: Crash whilst generating web pages from command line
...
Throwing Report Error if center person is not in database. Added catching of Report Error to CommandLineReport
if using GUI it is not possible to cause this, as you have to select a person that is in the DB. However on the command line you can specify any PID and even no person with that pid exists an error was thrown.
svn: r13004
2009-08-14 07:14:25 +00:00
Raphael Ackermann
55730240f5
add missing import
...
svn: r13002
2009-08-14 07:07:55 +00:00
Raphael Ackermann
cf5ee9d657
pep8 & typos
...
svn: r13001
2009-08-14 07:07:10 +00:00
Raphael Ackermann
c1be765f7a
fixed typos
...
svn: r12984
2009-08-13 08:52:05 +00:00
Raphael Ackermann
5ac76d658b
0002832: Somes modules still use Relib reference on docstring
...
patch by romjerome
fixed wrong doc string in srcref.py
svn: r12949
2009-08-10 19:46:24 +00:00
Raphael Ackermann
7bb8efc479
0003102: Can't run Narrative Website report
...
Added checks for NoneType Objects.
pep8 fixes
svn: r12939
2009-08-09 22:46:55 +00:00
Raphael Ackermann
b33a53e487
fixed typos
...
svn: r12937
2009-08-09 22:43:43 +00:00
Raphael Ackermann
65f72560d1
pep8 fixes
...
fixing typos
svn: r12934
2009-08-09 17:09:32 +00:00
Raphael Ackermann
28c404be58
typos & doc string formatting
...
svn: r12925
2009-08-08 19:11:39 +00:00
Raphael Ackermann
f6409fe94f
fixed typos
...
svn: r12924
2009-08-08 19:10:36 +00:00
Raphael Ackermann
eeac507a40
cleanup (typos, docs, indentation)
...
svn: r12921
2009-08-08 15:52:12 +00:00
Doug Blank
dd1f4f0b26
Added a convienence method __len__ for cursors; you can remove if you don't like
...
svn: r12912
2009-08-07 09:11:13 +00:00
Benny Malengier
ee69317b62
Fix for: 1277: database corroption on delete outside of DisplayTabs while tab open
...
Introduces the concept of callman.py as one single way to follow handles an
interface is interested in.
dbguielement.py contains a small base class using that, usable for all windows/
guielements that need to track database changes to handles
svn: r12881
2009-08-05 10:32:05 +00:00
Doug Blank
d5a9ffe96a
Made StyledTextTag a new-style class by extending object; allows to work with older python's too
...
svn: r12859
2009-08-02 05:25:37 +00:00
Doug Blank
8a7296920f
Use Preferences -> Text -> Private Given name instead of hardcoded _('Living')
...
svn: r12847
2009-07-29 03:28:05 +00:00
Benny Malengier
cf506f544e
fix make install failing
...
svn: r12803
2009-07-16 09:17:40 +00:00
Benny Malengier
2a365f4d99
improve docstrings
...
svn: r12797
2009-07-15 09:16:39 +00:00
Gary Burton
6c855de785
Fix a variety of memory leaks around the PeopleView and model
...
svn: r12791
2009-07-12 19:45:17 +00:00
Gerald Britton
d45f5970fb
add missing iterator methods to filter.py, use get_family_handles instead of the iterator in ExportGedcom.py
...
svn: r12790
2009-07-11 20:11:37 +00:00
Gary Burton
1460750b24
Add missing source_predicate method and doc strings
...
svn: r12787
2009-07-11 15:35:36 +00:00
Gary Burton
215aeb4667
Fix incorrect method name
...
svn: r12786
2009-07-11 15:32:37 +00:00
Gerald Britton
b221f428bf
proxybase tweak to default predicate to None
...
svn: r12784
2009-07-11 04:02:28 +00:00
Gerald Britton
56c79b6fa4
Proxy databases:
...
1. Provide default methods in proxybase.py for get_<object>_handles and iter_<object>_handles
2. Implement callouts in iter_<object>_handles to determine if handles should be included or not
3. Added new methods to dbbase.py raising NotImplementedError for the new iter_<object>_handles methods
4. Implemented new methods in living.py, private.py and referenced.py
5. Changed filter.py to use iter_person_handles instead of get_person_handles
6. Removed duplicate methods from children of ProxyDbBase
svn: r12783
2009-07-10 19:24:43 +00:00
Gerald Britton
181c0c9b41
Replace get_place_handles with iter_place_handles
...
svn: r12778
2009-07-08 18:11:02 +00:00
Gerald Britton
b601f4bdf2
Replace get_family_handles with iter_family_handles
...
svn: r12776
2009-07-08 16:11:20 +00:00
Gerald Britton
f680992d04
Tweaks
...
svn: r12775
2009-07-08 16:10:13 +00:00
Gerald Britton
f7454de7fd
Implement iter_people_handles methods and begin to use them
...
svn: r12760
2009-07-03 20:23:41 +00:00