Bug in templates at 0.9.5 version

Bug #1074623 reported by Fernando
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Charles Haley

Bug Description

There is a bug in templates at last version in Windows 7.

When trying to open template editor from Preferences-Save to disk, I get this error:

calibre, version 0.9.5
ERROR: Excepción no considerada: <b>AttributeError</b>:'list' object has no attribute 'lower'

Traceback (most recent call last):
File "site-packages\calibre\gui2\preferences\save_template.py ", line 47, in do_open_editor
File "site-packages\calibre\gui2\dialogs\template_dialog.py", line 228, in __init__
File "site-packages\calibre\ebooks\metadata\book\base.py", line 195, in __setattr__
AttributeError: 'list' object has no attribute 'lower'

Also, templates doesn't work properly in "Save to disk" template. When using an identifier in the template, I get an attribute error at line 164 in "save to disk.py": 'dict' object has no attribute 'replace'.

The template I'm trying to use is "{identifiers:select(isbn)}". The books are saved as "{Id}", and I get last error.

Related branches

Fernando (fenizz)
description: updated
Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1074623

Changing the component for this bug.

 assignee cbhaley
 status triaged

Changed in calibre:
assignee: nobody → Charles Haley (cbhaley)
status: New → Triaged
Revision history for this message
Charles Haley (cbhaley) wrote :

Kovid fixed the template editor bug a few days ago.

Code submitted to use identifiers in save to disk templates.

Changed in calibre:
status: Triaged → Fix Committed
Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in lp:calibre

Fixed in branch lp:calibre. The fix will be in the next release. calibre is usually released every Friday.

 status fixreleased

Changed in calibre:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.