To reproduce:
- Creata new page locally
- Upload it via the "sync" button
- Change the body text of the page remotely (I think this step has nothing to do with the error)
- Now, download the remote pages (I think whether you choose to 'overwrite' or not is irrelevant)
- The body text of your page has not been changed, and Python throws the following error
The following error
Traceback (most recent call last):
File "./gnapsack.py", line 465, in on_button_sync_ok_clicked
sync.updateBackpack()
File "/home/mdorn/dev/SoftwareProjects/gnapsack/model/sync.py", line 40, in up dateBackpack
new_id=self.createPage(page.title, page.body, page.links, page.tags, item[0] )
File "/home/mdorn/dev/SoftwareProjects/gnapsack/model/sync.py", line 71, in cr eatePage
self.createNotes(id)
File "/home/mdorn/dev/SoftwareProjects/gnapsack/model/sync.py", line 144, in c reateNotes
response=self.remote.notes.create(page_id, title, text)
File "/home/mdorn/dev/SoftwareProjects/gnapsack/model/backpack.py", line 562, in create
return self._parseNotes(x)[0]
File "/home/mdorn/dev/SoftwareProjects/gnapsack/model/backpack.py", line 292, in _parseNotes
rv.append( (int(note.getAttribute("id")),
AttributeError: 'NoneType' object has no attribute 'data'
Traceback (most recent call last):
File "./gnapsack.py", line 473, in on_button_sync_ok_clicked
sync.createDB()
File "/home/mdorn/dev/SoftwareProjects/gnapsack/model/sync.py", line 26, in cr eateDB
page=self.remote.page.get(item[0])
File "/home/mdorn/dev/SoftwareProjects/gnapsack/model/backpack.py", line 352, in get
return self._parsePage(x)
File "/home/mdorn/dev/SoftwareProjects/gnapsack/model/backpack.py", line 310, in _parsePage
rv.notes=self._parseNotes(page)
File "/home/mdorn/dev/SoftwareProjects/gnapsack/model/backpack.py", line 292, in _parseNotes
rv.append( (int(note.getAttribute("id")),
AttributeError: 'NoneType' object has no attribute 'data'