Bug 700001

Summary: [abrt] Zim-0.51-1.fc14: notebook.py:260:<genexpr>:AttributeError: 'str' object has no attribute 'uri'
Product: [Fedora] Fedora Reporter: Petr Lautrbach <plautrba>
Component: ZimAssignee: Robin Lee <robinlee.sysu>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 14CC: cweyl, dev, fabian, robinlee.sysu
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:0bf19528
Fixed In Version: Zim-0.52-1.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-07 02:56:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace none

Description Petr Lautrbach 2011-04-27 08:50:22 UTC
abrt version: 1.1.17
architecture: x86_64
component: Zim
executable: /usr/bin/zim
kernel: 2.6.35.12-88.fc14.x86_64
package: Zim-0.51-1.fc14
reason: notebook.py:260:<genexpr>:AttributeError: 'str' object has no attribute 'uri'
release: Fedora release 14 (Laughlin)
time: 1303894176
uid: 13558

backtrace
-----
notebook.py:260:<genexpr>:AttributeError: 'str' object has no attribute 'uri'

Traceback (most recent call last):
  File "/usr/bin/zim", line 56, in <module>
    zim.main(argv)
  File "/usr/lib/python2.7/site-packages/zim/__init__.py", line 311, in main
    notebook = zim.gui.notebookdialog.prompt_notebook()
  File "/usr/lib/python2.7/site-packages/zim/gui/notebookdialog.py", line 47, in prompt_notebook
    list.write()
  File "/usr/lib/python2.7/site-packages/zim/notebook.py", line 260, in write
    lines.extend(info.uri + '\n' for info in self)
  File "/usr/lib/python2.7/site-packages/zim/notebook.py", line 260, in <genexpr>
    lines.extend(info.uri + '\n' for info in self)
AttributeError: 'str' object has no attribute 'uri'

Local variables in innermost frame:
info: 'file:///home/user/Notes'
.0: <listiterator object at 0x1b09e50>

How to reproduce
-----
1. run zim
2. press OK in "Add Notebook" dialog
3.

Comment 1 Petr Lautrbach 2011-04-27 08:50:25 UTC
Created attachment 495150 [details]
File: backtrace

Comment 2 Robin Lee 2011-04-28 15:17:30 UTC
*** Bug 700503 has been marked as a duplicate of this bug. ***

Comment 3 Fedora Update System 2011-04-28 19:20:20 UTC
Zim-0.52-1.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/Zim-0.52-1.fc14

Comment 4 Fedora Update System 2011-04-29 03:20:24 UTC
Package Zim-0.52-1.fc14:
* should fix your issue,
* was pushed to the Fedora 14 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing Zim-0.52-1.fc14'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/Zim-0.52-1.fc14
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2011-05-07 02:56:05 UTC
Zim-0.52-1.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.