Commit Graph

82 Commits

Author SHA1 Message Date
Doug Blank
7aed9fc1bf 2008-02-25 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/DateHandler/_DateParser.py: set year += 1
	* src/gen/lib/date.py: removed slash-date fix
	* src/gen/lib/test/date_test.py: slash dates sort correctly



svn: r10121
2008-02-26 00:14:36 +00:00
Doug Blank
6103ed9539 2008-02-25 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/gen/lib/test/date_test.py: new slash date tests
	* src/gen/lib/date.py: new get_slash(), fix slash conversions
	* src/DateHandler/_DateParser.py: parser sets slash date to Julian



svn: r10114
2008-02-25 05:46:45 +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
Doug Blank
2180fa02cb 2008-02-23 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/gen/lib/date.py (Date.get_stop_date): 
	added new method Date.to_calendar; dates return None if error



svn: r10102
2008-02-24 00:58:33 +00:00
Raphael Ackermann
5f375b106f 2008-02-22 Raphael Ackermann <raphael.ackermann@gmail.com>
* ViewManager.py
	* gen/db/iterator.py
	* gen/db/base.py
	* gen/db/dbconst.py
	* gen/db/cursor.py
	* gen/db/__init__.py
	* gen/db/exceptions.py
	* gen/db/dbdir.py
	* gen/lib/srcbase.py
	* gen/callback: deleted unused directory
	* plugins/ReorderIds.py:
	pylint and pep8 doc fixes

svn: r10099
2008-02-23 08:38:55 +00:00
Doug Blank
c0fd2f8b39 2008-02-23 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/date_test.py: removed file; moved tests to:
	* src/gen/lib/test/date_test.py (suite3): new tests
	moved tests from src/date_test.py into unit-test framework



svn: r10098
2008-02-23 05:56:38 +00:00
Don Allingham
d45a676492 2008-02-20 Don Allingham <don@gramps-project.org>
* src/GrampsCfg.py: refactoring
	* src/gen/utils/test/callback_test.py: refactoring
	* src/gen/utils/callback.py: refactoring
	* src/gen/utils/longop.py: refactoring
	* src/gen/utils/__init__.py: refactoring
	* src/gen/db/base.py: refactoring
	* src/gen/Makefile.am: refactoring
	* src/DisplayState.py: refactoring
	* src/DbState.py: refactoring
	* src/PluginUtils/_MenuOptions.py: refactoring
	* src/ListModel.py: refactoring
	* src/BaseDoc.py: refactoring



svn: r10086
2008-02-21 04:58:56 +00:00
Doug Blank
ac8b31151b Fixes for date math and different calendars
svn: r10060
2008-02-19 06:00:51 +00:00
Doug Blank
bb11347869 2008-02-19 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/gen/lib/date.py (Date.__init__): 
	added Date("Jan 1, 2000") string constructor and
	calendar, quality, and modifier keywords to Date()



svn: r10059
2008-02-19 05:22:50 +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
Doug Blank
76d1f660f0 Removed __eq__ on dates
svn: r10044
2008-02-17 18:04:36 +00:00
Doug Blank
6ad3a48d64 2008-02-17 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/gen/lib/date.py (Date.__sub__): fixed some date math (#1649)
	* src/gen/lib/test/date_test.py: added some unit tests for date math



svn: r10043
2008-02-17 17:53:43 +00:00
Raphael Ackermann
534a306579 2008-02-02 Raphael Ackermann <raphael.ackermann@gmail.com>
* src/DataViews/GrampletView.py
	* src/ReportBase/_ReportUtils.py
	* src/gen/proxy/private.py
	* src/plugins/WebCal.py
	* src/plugins/CmdRef.py
	* src/Models/_ListCursor.py
	* src/Models/_PathCursor.py
	PEP 8 fixes. Change 
	if var == True --> if var 
	if var is True --> if var
	if var == False --> if not var
	if var == None --> if var is None

svn: r9994
2008-02-05 00:31:57 +00:00
Gary Burton
2742e8d00b 2008-02-03 Gary Burton <gary.burton@zen.co.uk>
* src/gen/db/base.py: Functions using the pop function expect a return
	value. Bug #1632



svn: r9991
2008-02-03 21:55:03 +00:00
Raphael Ackermann
506eb32637 2008-01-24 Raphael Ackermann <raphael.ackermann@gmail.com>
Removed all the __author__, __revision__ and __version__ statements

svn: r9928
2008-01-24 20:38:10 +00:00
Raphael Ackermann
e67991ebeb 2008-01-22 Raphael Ackermann <raphael.ackermann@gmail.com>
* src/ReportBase/_Bibliography.py
	* src/ReportBase/_Endnotes.py
	* src/GrampsLocale/__init__.py
	* src/gen/db/dbconst.py
	* src/gen/lib/test/date_test.py
	* src/plugins/CalculateEstimatedDates.py
	* src/BasicUtils/__init__.py
	* src/test/utils_test.py
	* src/GrampsDbUtils/importdbdir.py
	* po/test/po_test.py
	add filename to $Id: $ to allow automatic filling in of svn properties

svn: r9914
2008-01-22 10:17:42 +00:00
Raphael Ackermann
bbe2cc6d4e 2008-01-22 Raphael Ackermann <raphael.ackermann@gmail.com>
* src/* Everything but src/images/* and src/data/* add correct svn 
	properties with the commands:
	svn propset -R svn:mime-type text/plain src/
	svn propset -R svn:eol-style native src/
	svn propset -R svn:keywords Id src/
	See below why the Id keyword is enough. From svn help propset
	svn:keywords   - Keywords to be expanded.  Valid keywords are:
      URL, HeadURL             - The URL for the head version of the object.
      Author, LastChangedBy    - The last person to modify the file.
      Date, LastChangedDate    - The date/time the object was last modified.
      Rev, Revision,           - The last revision the object changed.
      LastChangedRevision
      Id                       - A compressed summary of the previous
                                   4 keywords.

svn: r9912
2008-01-22 09:17:46 +00:00
Raphael Ackermann
493c790703 2008-01-18 Raphael Ackermann <raphael.ackermann@gmail.com>
* src/gen/db/dbdir.py
    * src/plugins/ChangeNames.py
    * src/DisplayModels/_NoteModel.py
    * src/GrampsDbUtils/_GrampsBSDDB.py
    * src/Filters/SideBar/_MediaSidebarFilter.py
    * src/Filters/SideBar/_SidebarFilter.py
    * src/Filters/SideBar/_SourceSidebarFilter.py
    * src/Filters/SideBar/_EventSidebarFilter.py
    * src/Filters/SideBar/_FamilySidebarFilter.py
    * src/Filters/SideBar/_PlaceSidebarFilter.py
    * src/Filters/SideBar/_NoteSidebarFilter.py
    * src/Filters/SideBar/_RepoSidebarFilter.py
    * src/Filters/SideBar/_PersonSidebarFilter.py
    * src/Filters/Rules/Family/_HasNoteRegexp.py
    * src/Filters/Rules/Event/_MatchesSourceFilter.py
    * src/Filters/Rules/Event/_HasNoteRegexp.py
    * src/Filters/Rules/Event/_MatchesPersonFilter.py
    * src/Filters/Rules/_HasTextMatchingRegexpOf.py
    * src/Filters/Rules/Place/_MatchesEventFilter.py
    * src/Filters/Rules/Person/_HasTextMatchingRegexpOf.py
    * src/Filters/Rules/Person/_MatchesEventFilter.py
    Pylint fixes.

svn: r9885
2008-01-18 15:51:15 +00:00
Benny Malengier
ccb0b85b15 * src/gen/db/exceptions.py: wrong exception def, bug #1593
* src/GrampsDbUtils/_WriteXML.py: correctly catch the exception
	* src/GrampsDbUtils/_GrampsDbWriteXML.py: remove double def of xml export
	* src/GrampsDbUtils/_GrampsDbWRFactories.py: remove write backend factory
	* src/ExportAssistant.py: on fail, do not set success = True
	* src/GrampsDbUtils/__init__.py: don't export unused stuff

2008-01-15  Benny Malengier <benny.malengier@gramps-project.org>


svn: r9818
2008-01-15 10:47:25 +00:00
Raphael Ackermann
1abb8df85f 2008-01-10 Raphael Ackermann <raphael.ackermann@gmail.com>
* src/gen/db/dbdir.py: add doc, remove unused variable
    * src/GrampsDbUtils/_GrampsBSDDB.py: : add doc, remove unused variable
    * src/plugins/AncestorChart.py: cleanup unused vars
    * src/plugins/Calendar.py: typo in doc
    * src/plugins/ChangeNames.py: cleanup unused vars
    * src/plugins/DescendChart.py: cleanup unused vars
    * src/plugins/FamilyLines.py: cleanup unused vars
    * src/ReportBase/_ReportUtils.py: fix typo in variable Name

svn: r9779
2008-01-11 06:50:46 +00:00
Gary Burton
811f40b5da * src/DisplayModels/_NoteModel.py:
* src/Selectors/_SelectNote.py:
	* src/DisplayViews/NoteView.py:
	* src/gen/db/base.py:
	Change the order of columns on Note View and Select Note dialog. Also
	fixed a crash. Bug #1529

2008-01-09  Gary Burton <gary.burton@zen.co.uk>


svn: r9770
2008-01-09 21:15:28 +00:00
Raphael Ackermann
2857943955 2008-01-09 Raphael Ackermann <raphael.ackermann@gmail.com> From PEP8 Always use 'self' for the first argument to instance methods.
svn: r9767
2008-01-09 16:47:56 +00:00
Raphael Ackermann
b7c7952058 2008-01-09 Raphael Ackermann <raphael.ackermann@gmail.com>
svn: r9760
2008-01-09 06:45:15 +00:00
James G Sack
fb025aa2bd add comment about int4entional undefined function
svn: r9755
2008-01-08 21:45:06 +00:00
Brian Matherly
bf3900f043 Patch from Raphael Ackermann <raphael.ackermann@gmail.com> -- Fix 0001538: tabs and spaces are mixed in some source files
svn: r9713
2008-01-05 20:10:26 +00:00
Doug Blank
e226c06de6 2008-01-04 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/gen/lib/date.py (Date.__sub__): fixed date differences
	* src/Simple/_SimpleTable.py: removed frame around textview
	


svn: r9709
2008-01-05 03:02:56 +00:00
Doug Blank
1e3ce27007 2008-01-03 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/ReportBase/_Constants.py: added QR_NOTE, QR_DATE
	* src/gen/lib/date.py: working on date math
	* src/plugins/AgeOnDate.py: new Quick View for age on date
	* src/plugins/DefaultGadgets.py: added Age on Date gadget
	* src/QuickReports.py: new constants
	* src/Simple/_SimpleTable.py: handle sort columns



svn: r9698
2008-01-03 14:18:18 +00:00
Doug Blank
3295364aa2 Date arithmetic typo
svn: r9668
2007-12-31 23:26:50 +00:00
Doug Blank
a066962d6a Date arithmetic typo
svn: r9667
2007-12-31 23:26:12 +00:00
Gary Burton
cfbcdce095 * src/gen/db/base.py: added missing key for reference_key in mapbase and
_SIGBASE. Was preventing deleted notes being undone. Bug #1507.

2007-12-31 Gary Burton <gary.burton@zen.co.uk>


svn: r9664
2007-12-31 21:57:54 +00:00
Doug Blank
0cd7a685d6 Fixed date arithmetic
svn: r9662
2007-12-31 21:23:48 +00:00
Doug Blank
70a02003ba Date arithmetic
svn: r9658
2007-12-31 16:43:58 +00:00
James G Sack
7216c72509 fix confusing dup function name (fn -> fn3)
svn: r9618
2007-12-29 03:00:46 +00:00
Brian Matherly
85fd9a2d1b src/Config/_GrampsConfigKeys.py: Better default for report output.
src/gen/db/dbconst.py: Remove constants that are duplicated in const.py.
src/GrampsDb/_GrampsBSDDB.py: Use ENV_DIR from const.py.

svn: r9601
2007-12-27 21:44:15 +00:00
Benny Malengier
886e3299e4 2007-12-19 Benny Malengier <benny.malengier@gramps-project.org>
* src/gen/lib/person.py: sources in attributes of eventref are not seen
		 in ref tables
	* src/gen/lib/eventref.py: can contain sources, add methods for that
	* src/gen/lib/notebase.py: whitespace
	* src/plugins/Check.py: low level check of repo table, add check to 
		clean up referenced but not existing repos


svn: r9532
2007-12-19 09:47:17 +00:00
Benny Malengier
00511a133f 2007-12-14 Benny Malengier <benny.malengier@gramps-project.org>
* src/Editors/_EditEvent.py: first attribute tab THEN backref
	* src/DisplayTabs/_BackRefList.py: whitespace change
	* src/gen/lib/repo.py: correct error with source backref too
	* src/gen/lib/personref.py:
	* src/gen/lib/mediaref.py:
	* src/gen/lib/childref.py:
	* src/gen/lib/place.py:
	* src/gen/lib/address.py:
	* src/gen/lib/src.py:
	* src/gen/lib/person.py:
	* src/gen/lib/mediaobj.py:
	* src/gen/lib/eventref.py:
	* src/gen/lib/name.py:
	* src/gen/lib/family.py:
	* src/gen/lib/event.py:
	* src/gen/lib/ldsord.py:
	Add get_note_child_list method to allow recursive deletion of notes in
	child objects
	* src/gen/lib/notebase.py: add remove_note that recursively searches
		in the child secondary objects
	* src/plugins/Check.py: fix broken note links, fix broken repo-source link



svn: r9507
2007-12-14 22:18:19 +00:00
Benny Malengier
283678e47e 2007-12-10 Benny Malengier <benny.malengier@gramps-project.org>
* src/gen/lib/notebase.py: change comment string
	* src/gen/lib/person.py: change comment string
	* src/gen/lib/event.py: add attr to list of sec objects, bug #1318



svn: r9481
2007-12-10 21:44:09 +00:00
Benny Malengier
30e224ff35 * src/gen/db/dbdir.py: always use db.DB_RECOVER
2007-12-09 Benny Malengier <benny.malengier@gramps-project.org>


svn: r9475
2007-12-09 22:27:24 +00:00
Benny Malengier
c4bf352d49 * src/gen/db/dbdir.py: rebuild ref map correctly, bug #1421
2007-12-09 Benny Malengier <benny.malengier@gramps-project.org>


svn: r9466
2007-12-09 15:56:01 +00:00
Benny Malengier
027036a8c5 2007-12-09 Benny Malengier <benny.malengier@gramps-project.org>
Add support for name grouping import/export
	* src/GrampsDb/_GrampsDbWriteXML.py: write group table out
	* src/GrampsDb/_GrampsBSDDB.py: group table is no sec table, init it
		together with primary tables!
	* src/gen/db/base.py: obtain grouping keys
	* src/gen/db/dbdir.py: group table is no sec table, init it
		together with primary tables!
	* src/gen/utils/dbutils.py: grdb -> grdb copy of grouping table, 
		copy mediapath.
	* src/gen/proxy/proxybase.py: obtain grouping keys, add missing
		bookmark methods
	* src/gen/proxy/dbbase.py: add obtain grouping keys method
	* src/GrampsDbUtils/_ReadXML.py: read in group table
	* src/plugins/ReadGrdb.py: read in group table



svn: r9464
2007-12-09 10:18:59 +00:00
Benny Malengier
e6e33b8934 * src/gen/proxy/proxybase.py: remove unneeded assign
2007-12-04 Benny Malengier <benny.malengier@gramps-project.org>


svn: r9443
2007-12-04 20:32:55 +00:00
Benny Malengier
490a3957f1 2007-12-04 Benny Malengier <benny.malengier@gramps-project.org>
* src/gen/proxy/proxybase.py: add mediapath get
	* src/gen/proxy/dbbase.py: add mediapath methods



svn: r9442
2007-12-04 17:06:45 +00:00
Doug Blank
ea61a85402 2007-12-02 Douglas S.Blank <dblank@cs.brynmawr.edu>
* src/gen/lib/date.py: added new method copy_ymd()
	* src/plugins/CalculateEstimatedDates.py: new tool based on 
	  MenuOptions: calculates estimated dates
	* src/PluginUtils/_PluginWindows.py: refactoring, cleanup

	* po/POTFILES.in: renamed PluginStatus.py -> PluginWindows.py


svn: r9438
2007-12-02 18:41:21 +00:00
Benny Malengier
d1b65054a9 2007-11-30 Benny Malengier <benny.malengier@gramps-project.org>
* src/GrampsCfg.py: rel media path entry box
	* src/gen/db/base.py: methods for access
	* src/gen/db/dbdir.py: storage in BSDDB
	* src/GrampsDb/_GrampsDbWriteXML.py: write in header
	* src/GrampsDbUtils/_ReadXML.py: read relative path
	Start of adding relative media path to database



svn: r9435
2007-11-30 23:50:05 +00:00
Benny Malengier
8d64c728fc 2007-11-29 Benny Malengier <benny.malengier@gramps-project.org>
* src/DataViews/_RepositoryView.py:
	* src/gen/db/base.py:
	* src/DisplayModels/_RepositoryModel.py:
	Added a change column in repoview, model, database column storage



svn: r9432
2007-11-29 14:02:22 +00:00
Benny Malengier
e8f08492bc 2007-11-28 Benny Malengier <benny.malengier@gramps-project.org>
* example/gramps/example.gramps: correct 3.0 example.gramps, stext is
	no longer used, xml no longer sorted on id on ouput.
	* src/gen/db/base.py: remove test code from Don



svn: r9421
2007-11-28 09:24:00 +00:00
James G Sack
db81451083 make date_test regrtest-compatible, minor tweak to regrtest
svn: r9404
2007-11-26 01:15:56 +00:00
Benny Malengier
ac82ef8754 2007-11-25 Benny Malengier <benny.malengier@gramps-project.org>
* src/gen/lib/notetype.py: type report, citation
	* src/plugins/NarrativeWeb.py: new selection of home note & home media
	* src/GrampsWidgets.py: NoteEntry, MediaEntry
	I intend to change the other note selectors likewise next.


svn: r9403
2007-11-25 19:07:50 +00:00
Doug Blank
5fdffbe292 * src/gen/lib/date.py: refer to Config values via Config.get()
* src/gen/lib/test/date_test.py: set Config values before testing

2007-11-25  Douglas S. Blank  <dblank@cs.brynmawr.edu>


svn: r9402
2007-11-25 18:13:19 +00:00
Doug Blank
36c73d38b3 2007-11-25 Douglas S.Blank <dblank@cs.brynmawr.edu>
* src/gen/lib/test/date_test.py: turned each test into a case



svn: r9400
2007-11-25 05:16:12 +00:00