gtg team mailing list archive
-
gtg team
-
Mailing list archive
-
Message #02331
[Bug 582995] Re: Crash on start - "Tag instance has no attribute 'replace'"
Ok, have a look.
--
Crash on start - "Tag instance has no attribute 'replace'"
https://bugs.launchpad.net/bugs/582995
You received this bug notification because you are a member of Gtg
contributors, which is subscribed to Getting Things GNOME!.
Status in Getting Things GNOME!: Fix Committed
Bug description:
Running gtg trunk results in a crash with the following error. Also, it causes tags.xml to zero:
-rw-r--r-- 1 bryce bryce 0 2010-05-19 11:14 tags.xml
-rw-r--r-- 1 bryce bryce 702 2010-05-19 11:14 tags.xml__
Even the (backup?) is invalid. The correct size of tags.xml is:
-rw-r--r-- 1 bryce bryce 3839 2010-05-19 11:14 tags.xml
Original exception was:
Traceback (most recent call last):
File "./gtg", line 52, in <module>
sys.exit(GTG.gtg.main(options, args))
File "/home/bryce/src/gtg/gtg/GTG/gtg.py", line 116, in main
ds = DataStore()
File "/home/bryce/src/gtg/gtg/GTG/core/datastore.py", line 48, in __init__
self.tagstore = tagstore.TagStore(self.requester)
File "/home/bryce/src/gtg/gtg/GTG/core/tagstore.py", line 81, in __init__
tag.set_attribute(at_name, at_val)
File "/home/bryce/src/gtg/gtg/GTG/core/tagstore.py", line 271, in set_attribute
self._save()
File "/home/bryce/src/gtg/gtg/GTG/core/tagstore.py", line 203, in save
cleanxml.savexml(self.filename, doc)
File "/home/bryce/src/gtg/gtg/GTG/tools/cleanxml.py", line 119, in savexml
pretty = doc.toprettyxml(tab, enter).encode("utf-8")
File "/usr/lib/python2.6/xml/dom/minidom.py", line 57, in toprettyxml
self.writexml(writer, "", indent, newl, encoding)
File "/usr/lib/python2.6/xml/dom/minidom.py", line 1749, in writexml
node.writexml(writer, indent, addindent, newl)
File "/usr/lib/python2.6/xml/dom/minidom.py", line 817, in writexml
node.writexml(writer,indent+addindent,addindent,newl)
File "/usr/lib/python2.6/xml/dom/minidom.py", line 812, in writexml
_write_data(writer, attrs[a_name].value)
File "/usr/lib/python2.6/xml/dom/minidom.py", line 301, in _write_data
data = data.replace("&", "&").replace("<", "<")
AttributeError: Tag instance has no attribute 'replace'
References