2008-02-26 Benny Malengier <benny.malengier@gramps-project.org>
* src/ScratchPad.py: bug when dragging sourceref #1833 * src/GrampsDisplay.py: remove whitespace 2008-02-24 Benny Malengier <benny.malengier@gramps-project.org> svn: r10125
This commit is contained in:
parent
c1f29a3f04
commit
7bd31dd4f1
@ -1,3 +1,7 @@
|
|||||||
|
2008-02-26 Benny Malengier <benny.malengier@gramps-project.org>
|
||||||
|
* src/ScratchPad.py: bug when dragging sourceref #1833
|
||||||
|
* src/GrampsDisplay.py: remove whitespace
|
||||||
|
|
||||||
2008-02-26 Peter Landgren <peter.talken@telia.com>
|
2008-02-26 Peter Landgren <peter.talken@telia.com>
|
||||||
* src/plugins/FanChart.py: Fix for printing in landscape issue #1753
|
* src/plugins/FanChart.py: Fix for printing in landscape issue #1753
|
||||||
|
|
||||||
@ -102,7 +106,7 @@
|
|||||||
* src/DataViews/GrampletView.py (GrampletView.restore_gramplet):
|
* src/DataViews/GrampletView.py (GrampletView.restore_gramplet):
|
||||||
Fixed restore minimized gramplet
|
Fixed restore minimized gramplet
|
||||||
|
|
||||||
2008-02-24 NOT Douglas S. Blank <dblank@cs.brynmawr.edu>
|
2008-02-24 Benny Malengier <benny.malengier@gramps-project.org>
|
||||||
* src/ViewManager.py:
|
* src/ViewManager.py:
|
||||||
* src/DbLoader.py:
|
* src/DbLoader.py:
|
||||||
Remove os.chdir, no longer needed for relative path
|
Remove os.chdir, no longer needed for relative path
|
||||||
|
@ -68,8 +68,6 @@ def help(target, webpage='', section=''):
|
|||||||
|
|
||||||
# 3.0 Beta, direct to the wiki 3.0 Manual
|
# 3.0 Beta, direct to the wiki 3.0 Manual
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if not webpage:
|
if not webpage:
|
||||||
link = const.URL_WIKISTRING + const.URL_MANUAL_PAGE + EXTENSION
|
link = const.URL_WIKISTRING + const.URL_MANUAL_PAGE + EXTENSION
|
||||||
else:
|
else:
|
||||||
|
@ -28,7 +28,6 @@
|
|||||||
import cPickle as pickle
|
import cPickle as pickle
|
||||||
import os
|
import os
|
||||||
from xml.sax.saxutils import escape
|
from xml.sax.saxutils import escape
|
||||||
from gettext import gettext as _
|
|
||||||
from time import strftime as strftime
|
from time import strftime as strftime
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@ -57,6 +56,7 @@ import TreeTips
|
|||||||
import DateHandler
|
import DateHandler
|
||||||
import GrampsDisplay
|
import GrampsDisplay
|
||||||
import ManagedWindow
|
import ManagedWindow
|
||||||
|
from TransUtils import sgettext as _
|
||||||
|
|
||||||
from DdTargets import DdTargets
|
from DdTargets import DdTargets
|
||||||
|
|
||||||
@ -480,10 +480,18 @@ class ScratchPadSourceRef(ScratchPadGrampsTypeWrapper):
|
|||||||
srctxtlist = [ note for note in notelist
|
srctxtlist = [ note for note in notelist
|
||||||
if note.get_type() == gen.lib.NoteType.SOURCE_TEXT]
|
if note.get_type() == gen.lib.NoteType.SOURCE_TEXT]
|
||||||
|
|
||||||
|
page = self._obj.get_page()
|
||||||
|
if not page:
|
||||||
|
page = _('not available|NA')
|
||||||
|
text = ""
|
||||||
if len(srctxtlist) > 0:
|
if len(srctxtlist) > 0:
|
||||||
self._value = srctxtlist[0].get_text()
|
text = " ".join(srctxtlist[0].get().split())
|
||||||
else:
|
if len(text) > 60:
|
||||||
self._value = u""
|
text = text[:60]+"..."
|
||||||
|
self._value = _("Volume/Page: %(pag)s -- %(sourcetext)s") % {
|
||||||
|
'pag' : page,
|
||||||
|
'sourcetext' : text,
|
||||||
|
}
|
||||||
|
|
||||||
def tooltip(self):
|
def tooltip(self):
|
||||||
global escape
|
global escape
|
||||||
|
Loading…
Reference in New Issue
Block a user