* src/Spell.py: give more intelligent error message if spelling
checker is not found. * src/plugins/DescendChart.py: fixed type detection to handle both unicode and str. svn: r5297
This commit is contained in:
@@ -1,4 +1,8 @@
|
|||||||
2005-10-09 Don Allingham <don@gramps-project.org>
|
2005-10-09 Don Allingham <don@gramps-project.org>
|
||||||
|
* src/Spell.py: give more intelligent error message if spelling
|
||||||
|
checker is not found.
|
||||||
|
* src/plugins/DescendChart.py: fixed type detection to handle both
|
||||||
|
unicode and str.
|
||||||
* src/plugins/NavWebPage.py: fixed typo in Creative Commons messages
|
* src/plugins/NavWebPage.py: fixed typo in Creative Commons messages
|
||||||
|
|
||||||
2005-10-08 Don Allingham <don@gramps-project.org>
|
2005-10-08 Don Allingham <don@gramps-project.org>
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ try:
|
|||||||
success = True
|
success = True
|
||||||
|
|
||||||
except ImportError, msg:
|
except ImportError, msg:
|
||||||
print "Spell.py: ", msg
|
print _("Spelling checker is not installed")
|
||||||
except RuntimeError,msg:
|
except RuntimeError,msg:
|
||||||
print "Spell.py: ", msg
|
print "Spell.py: ", msg
|
||||||
except SystemError,msg:
|
except SystemError,msg:
|
||||||
|
|||||||
@@ -269,7 +269,6 @@ class DescendantGraph(Report.Report):
|
|||||||
ny2 = (y2-1)*(self.height+_sep) + top + self.height/2.0
|
ny2 = (y2-1)*(self.height+_sep) + top + self.height/2.0
|
||||||
if y1 < 0 and y2 < 0:
|
if y1 < 0 and y2 < 0:
|
||||||
half = (nx1+nx2)/2.0
|
half = (nx1+nx2)/2.0
|
||||||
print x1,x2,y1,y2,nx1,nx2,half
|
|
||||||
self.doc.draw_line("line",half,ny1,half,ny2)
|
self.doc.draw_line("line",half,ny1,half,ny2)
|
||||||
elif ny1 != ny2:
|
elif ny1 != ny2:
|
||||||
if x1 == -x2:
|
if x1 == -x2:
|
||||||
|
|||||||
@@ -331,7 +331,7 @@ class DescendChart(Report.Report):
|
|||||||
phys_x = 0
|
phys_x = 0
|
||||||
for x in range(startx,stopx):
|
for x in range(startx,stopx):
|
||||||
value = self.genchart.get_xy(x,y)
|
value = self.genchart.get_xy(x,y)
|
||||||
if type(value) == str:
|
if type(value) == str or type(value) == unicode:
|
||||||
text = '\n'.join(self.text[(x,y)])
|
text = '\n'.join(self.text[(x,y)])
|
||||||
xbegin = phys_x*self.delta
|
xbegin = phys_x*self.delta
|
||||||
yend = phys_y*bh+self.offset
|
yend = phys_y*bh+self.offset
|
||||||
|
|||||||
Reference in New Issue
Block a user