2007-03-21 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
* src/MarkupText.py (MarkupBuffer.set_text): convert unicode to byte string for parseString. * src/Editors/_EditAddress.py: * src/Editors/_EditLdsOrd.py: * src/Editors/_EditSourceRef.py: * src/Editors/_EditEventRef.py: * src/Editors/_EditMedia.py: * src/Editors/_EditName.py: * src/Editors/_EditEvent.py: attach ValidatableMaskedEntry into table with FILL=False yoption for having the validation error tip at right position. svn: r8309
This commit is contained in:
@@ -297,7 +297,7 @@ class MarkupBuffer(gtk.TextBuffer):
|
||||
def set_text(self, xmltext):
|
||||
"""Set the content of the buffer with markup tags."""
|
||||
try:
|
||||
parseString(xmltext, self.parser)
|
||||
parseString(str(xmltext), self.parser)
|
||||
text = self.parser.content
|
||||
except:
|
||||
# if parse fails remove all tags and use clear text instead
|
||||
|
||||
Reference in New Issue
Block a user