src/plugins/GraphViz.py.in: fix file open.
svn: r6737
This commit is contained in:
parent
7cd3d8e028
commit
d0b7be73ff
@ -1,3 +1,6 @@
|
||||
2006-05-21 Brian Matherly <brian@gramps-project.org>
|
||||
* src/plugins/GraphViz.py.in: fix file open.
|
||||
|
||||
2006-05-21 Alex Roitman <shura@gramps-project.org>
|
||||
* src/const.py.in: Use gettext.
|
||||
* src/GrampsDb/_ConstXML.py: Remove file.
|
||||
|
@ -236,6 +236,7 @@ class GraphViz:
|
||||
self.filter = filters[filter_num]
|
||||
|
||||
the_buffer = self.get_report()
|
||||
self.f = open(options_class.get_output(),'w')
|
||||
if self.latin:
|
||||
self.f.write(the_buffer.encode('iso-8859-1'))
|
||||
else:
|
||||
@ -523,6 +524,7 @@ just use iconv:
|
||||
cause
|
||||
empty string
|
||||
"""
|
||||
if event:
|
||||
if event.get_date_object().get_year_valid():
|
||||
if self.just_years:
|
||||
return '%i' % event.get_date_object().get_year()
|
||||
|
Loading…
Reference in New Issue
Block a user