Commit Graph

70 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
Brian Matherly
f04880ec09 Move gettext, ngettext and sgettext calls into the new ggettext module. All of them return unicode all of the time.
svn: r14091
2010-01-18 04:42:17 +00:00
Brian Matherly
c5f54d0cfc Continued work on GEP008: Move src/BasicUtils/_NameDisplay.py to src/gen/display.
svn: r14072
2010-01-14 04:08:04 +00:00
Nick Hall
b503fa2e25 Extend history functionality (back/forward) and active-changed signals to all primary objects
svn: r14023
2010-01-10 19:19:33 +00:00
Doug Blank
cd17f1e0fa Add support for checkbox/toggle columns; a debug msg for developers
svn: r14012
2010-01-10 04:03:59 +00:00
Doug Blank
7dd624d657 Workaround added for strange Python 2.6 bug on recusive signal handling
svn: r14007
2010-01-09 17:13:56 +00:00
Doug Blank
59b06487b7 Add ability for Table to have toggle-able rows; also keeps track of raw data
svn: r13991
2010-01-07 21:42:43 +00:00
Doug Blank
fa1413c640 Fixed issue on emitting a signal which will change a table before the click has returned, which can crash Python
svn: r13946
2009-12-31 14:56:44 +00:00
Doug Blank
145a517324 Typo in SimpleAccess and refinement in SimpleTable -- allow any object, just turn into string
svn: r13911
2009-12-24 22:19:30 +00:00
Doug Blank
ab3dfe1415 3465: Create a new hierarchy of base classes for gramps cor databases (read, write) and add methods
svn: r13894
2009-12-23 15:55:58 +00:00
Doug Blank
8f2f2f200f Moved gtk imports out of global scope for cli use
svn: r13824
2009-12-16 12:43:21 +00:00
Doug Blank
f2abf6e4c2 Removed hacky flag; don't know why it was needed
svn: r13811
2009-12-15 16:48:03 +00:00
Brian Matherly
bbe2b6da0c move src/Editors/* to src/gui/editors as part of GEP008
svn: r13807
2009-12-15 05:56:12 +00:00
Doug Blank
013ef62b6b Four ways to link a row: by object, object/col, (object, handle), [(obj, handle)...]]
svn: r13785
2009-12-13 14:45:52 +00:00
Doug Blank
9fd2e4a7fc Add manual url links on table rows
svn: r13730
2009-12-06 15:57:53 +00:00
Doug Blank
2ed9ac56e4 Fixed a bug in HTML table widths; allow args to make_basic_stylesheet; add scrollbars to tabbed items
svn: r13660
2009-11-23 01:39:29 +00:00
Doug Blank
ac95f805ac Workaround to avoid importing all of ReportUtils and gtk
svn: r13613
2009-11-17 23:28:04 +00:00
Doug Blank
fa21027a23 Changed the displayed text of an object in the simple table to gramps_id rather than name of item
svn: r13593
2009-11-15 22:43:44 +00:00
Doug Blank
a96eb41a7f Use new link tag; SimpleTable can now output docgen types other than gtk
svn: r13588
2009-11-15 13:18:59 +00:00
Doug Blank
b5ca175f2b Changed the names of the styles of tables and fixed a col width error (which weren't used, but will be in the webapp)
svn: r13580
2009-11-14 22:50:19 +00:00
Doug Blank
99282aa715 3272: Proposal for updating config settings
svn: r13346
2009-10-08 01:12:51 +00:00
Doug Blank
7f2b239f26 Add ability for double-click on SimpleTable row to show people by list of handles
svn: r13221
2009-09-18 22:49:43 +00:00
Raphael Ackermann
65f72560d1 pep8 fixes
fixing typos


svn: r12934
2009-08-09 17:09:32 +00:00
Doug Blank
3be34486b9 Added ability for simple functions to alternatively work with handles
svn: r12857
2009-08-02 03:29:22 +00:00
Gerald Britton
70a0c50fca Use GrampsCursor as a context manager using "with" statement
svn: r12672
2009-06-16 15:49:17 +00:00
Benny Malengier
fb3ec68c6a part 3 : split basedoc in files, remove Utils dependance, move fontscale in gen,
update build system


svn: r12603
2009-05-31 14:59:56 +00:00
Benny Malengier
8dd7adc607 part 2 basedoc: move BaseDoc.py to /gen/plug/docgen and add /gen/plug/docbackend
that was missing in part 1 
 Still to come: makefiles and splitting new basedoc.py in small files


svn: r12591
2009-05-29 22:25:44 +00:00
Gerald Britton
021b754939 Bug 3011: change old-style classes to new-style classes
svn: r12559
2009-05-21 17:19:50 +00:00
Doug Blank
aa7ff9cf68 Make SimpleTable columns resizable
svn: r12483
2009-04-20 21:00:20 +00:00
Doug Blank
ec4905b6ca Removed extra space before family names in table row
svn: r12477
2009-04-18 23:32:09 +00:00
Doug Blank
832acac4c9 fix for gtk not liking unicode?
svn: r11603
2009-01-10 16:26:24 +00:00
Doug Blank
61ca9201b5 Changes in the manner that date differences are represented and compared
svn: r11565
2009-01-04 17:44:33 +00:00
Doug Blank
6244a0c033 Added a Gramplet that can run a Quick View
svn: r11466
2008-12-13 16:59:14 +00:00
Gerald Britton
4982292774 Code optimizations wrt handling of None - bug 2212
svn: r10811
2008-06-16 15:01:46 +00:00
Brian Matherly
3a98ddd4fd 0002122: Detailed Ancestor Report reports people as buried who have no birth events (contributed by Gerald Britton <gerald.britton@gmail.com>)
svn: r10781
2008-06-02 00:59:14 +00:00
Zsolt Foldvari
998908175f Issue #0002175: Change type() expressions to isinstance() expressions.
Patch from Gerald Britton <gerald.britton@gmail.com>


svn: r10762
2008-05-25 19:55:47 +00:00
Doug Blank
20420efec2 Added invalid date format to configs, with bold default
svn: r10618
2008-04-22 01:36:03 +00:00
Doug Blank
10d5232085 Display and sort invalid dates better
svn: r10593
2008-04-19 17:04:54 +00:00
Doug Blank
f637730a87 General polish of some date handling code; fixed a bug in date comparisons involving 'ABT' dates
svn: r10592
2008-04-19 16:48:46 +00:00
Doug Blank
2098a01f8d refactored SimpleTable; QuickReports can return values; date diffs return Span
svn: r10578
2008-04-18 01:09:32 +00:00
Doug Blank
015bde9e01 0001994: Cannot properly sort dates stored in few quick reports using SimpleTab
svn: r10425
2008-03-30 12:38:32 +00:00
Doug Blank
29ed9a79fe 0001972: Fixed untranslated filter names in FilterByName\n and 'and' in family description
svn: r10396
2008-03-25 15:06:01 +00:00
Doug Blank
b04ef64231 Indicate mouse clicks properly handled by returning True
svn: r10229
2008-03-08 20:23:11 +00:00
Doug Blank
671891b816 Refinements on previous commit; new filter by name 'media by size'
svn: r10190
2008-03-05 04:34:28 +00:00
Doug Blank
2ef34cf90a * src/Simple/_SimpleTable.py:
added callback for click/doubleclick manual override for rows
	added numeric sorting
	* src/QuickReports.py: added run_quick_report_by_name_direct
	that allows one quick report to run another
	* src/plugins/DefaultGramplets.py: made stats gramplet show 
	details when drilling down with double-click
	* src/plugins/SameSurnames.py: allow running by string rather than 
	person object
	* src/DataViews/GrampletView.py: added Filter type of link; fixed
	bug in drag and drop from earlier option infrastructure
	* src/plugins/FilterByName.py: quick report that runs a filter by
	name

2008-03-04  Douglas S. Blank  <dblank@cs.brynmawr.edu>


svn: r10188
2008-03-05 04:01:27 +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
6efffe4bf0 2008-01-24 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/GrampsCfg.py: missing const; added Text tab
	* src/Config/_GrampsConfigKeys.py: added missing and private text
	* src/plugins/DefaultGramplets.py: use missing surname text
	* src/Simple/_SimpleAccess.py: use missing surname text



svn: r9929
2008-01-25 01:15:02 +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
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
Doug Blank
409a730fa0 2008-01-18 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/plugins/DefaultGramplets.py (SurnameCloudGramplet.main): 
	use const.NO_SURNAME to display blank entries
	* src/plugins/SameSurnames.py (SameSurname): exact match surnames
	* src/Simple/_SimpleAccess.py (SimpleAccess.surname): 
	surname() returns const.NO_SURNAME when left blank
	* src/const.py.in: new NO_SURNAME constant; RERUN ./autogen.sh !



svn: r9887
2008-01-18 18:28:28 +00:00