* src/docgen/LPRDoc.py (draw_path,draw_bar): Fill, then stroke.

* src/DbPrompter.py: Change file filter name.

* src/Report.py (doc_type_changed): Deal with empty extensions.
* src/docgen/AsciiDoc.py (add_photo): Add method;
(end_row): Inlcude last cell into proper formatting.
* src/GedcomInfo.py: Properly import expat.ParserCreate class.
* src/TipOfDay.py: Properly import expat.ParserCreate class.
* src/RecentFiles.py: Properly import expat.ParserCreate class.
* src/ReadXML.py: Properly import expat.* classes.
* doc/gramps-manual/C/usage.xml: Update.
* doc/gramps-manual/C/usage.xml: Update.
* doc/xmldocs.make: Switch Makefile from CLEANFILES to DISTCLEANFILES.
* src/Makefile.am: Add const.pyc and const.pyo to CLEANFILES.


svn: r4051
This commit is contained in:
Alex Roitman
2005-02-19 00:49:49 +00:00
parent fdfa19fa1f
commit 8b0aa1f633
10 changed files with 189 additions and 77 deletions

View File

@@ -25,7 +25,7 @@
# standard python modules
#
#-------------------------------------------------------------------------
import xml.parsers.expat
from xml.parsers.expat import ParserCreate
from random import Random
#-------------------------------------------------------------------------
@@ -100,7 +100,7 @@ class TipParser:
self.mylist = []
xml_file = open(const.tipdata)
self.tlist = []
p = xml.parsers.expat.ParserCreate()
p = ParserCreate()
p.StartElementHandler = self.startElement
p.EndElementHandler = self.endElement
p.CharacterDataHandler = self.characters