Commit Graph

21 Commits

Author SHA1 Message Date
Nick Hall
829705de76 Add main participant to title
svn: r14214
2010-02-04 19:04:35 +00:00
Benny Malengier
d6205d09d1 fix bug: close not disconnected on dbchange
svn: r14190
2010-02-02 09:02:31 +00:00
Gerald Britton
8f0582df8a Use built-in functions to replace for loops:
Old code:

for x in y:
  f(x)

New Code:

map(f, y)

Also use defaultdict instead of simple dict when advantageous and use list comprehensions
instead of for loops where map() could be used but requires lambdas.


svn: r14135
2010-01-25 17:45:21 +00:00
Peter Landgren
d4117408e6 Fixed typo.
svn: r14133
2010-01-25 08:56:46 +00:00
Peter Landgren
7a3732d6fa Fixed typo.
svn: r14132
2010-01-25 08:56:05 +00:00
Brian Matherly
cd30f4db2f Continued work on GEP008: move src/Mime to src/gen/mime.
svn: r14118
2010-01-24 20:17:14 +00:00
Brian Matherly
2e9a4c27d0 Move find_mime_type_pixbuf from the Mime module to ThumbNails. It is more closely related to thumbnails than mime.
svn: r14109
2010-01-24 04:52:22 +00:00
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
Nick Hall
7f2174b225 Improve event type defaults for new events in display tabs
svn: r13933
2009-12-28 18:09:40 +00:00
Benny Malengier
68224a98c0 correct wrong editperson import
svn: r13923
2009-12-27 09:48:58 +00:00
Brian Matherly
9a397544a2 Fix missing import for family event reference editor.
svn: r13883
2009-12-22 12:21:37 +00:00
Doug Blank
3a8b4d7e40 Moved fallback functions from Db to gen.utils
svn: r13876
2009-12-21 05:58:55 +00:00
Doug Blank
872e971fd3 gen.lib and gen.utils are independent; removed gen.utils.dbutils --- moved db methods to gen.db.base
svn: r13872
2009-12-21 04:18:31 +00:00
Gary Burton
b7169ff0b0 Fix bug 2926. Two references created when dropping media onto gallery tab
svn: r13858
2009-12-20 17:24:28 +00:00
Doug Blank
b4512427af Small little crash fix
svn: r13834
2009-12-17 04:38:33 +00:00
Peter Landgren
18eff92c76 Fixed some uppercase in filenames to lowercase.
svn: r13822
2009-12-16 08:07:52 +00:00
Brian Matherly
2f1c04169a move src/DisplayTabs/* to src/gui/editors/displaytabs as part of GEP008
svn: r13821
2009-12-16 06:11:06 +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