~ubuntu-branches/debian/sid/calibre/sid

« back to all changes in this revision

Viewing changes to src/calibre/gui2/actions/similar_books.py

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2014-02-27 07:48:06 UTC
  • mto: This revision was merged to the branch mainline in revision 74.
  • Revision ID: package-import@ubuntu.com-20140227074806-64wdebb3ptosxhhx
Tags: upstream-1.25.0+dfsg
ImportĀ upstreamĀ versionĀ 1.25.0+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
    def genesis(self):
23
23
        m = self.qaction.menu()
24
24
        for text, icon, target, shortcut in [
25
 
        (_('Books by same author'), 'user_profile.png', 'authors', _('Alt+A')),
 
25
        (_('Books by same author'), 'user_profile.png', 'authors', 'Alt+A'),
26
26
        (_('Books in this series'), 'books_in_series.png', 'series',
27
 
            _('Alt+Shift+S')),
28
 
        (_('Books by this publisher'), 'publisher.png', 'publisher', _('Alt+P')),
29
 
        (_('Books with the same tags'), 'tags.png', 'tags', _('Alt+T')),]:
 
27
            'Alt+Shift+S'),
 
28
        (_('Books by this publisher'), 'publisher.png', 'publisher', 'Alt+P'),
 
29
        (_('Books with the same tags'), 'tags.png', 'tags', 'Alt+T'),]:
30
30
            ac = self.create_action(spec=(text, icon, None, shortcut),
31
31
                    attr=target)
32
32
            m.addAction(ac)
75
75
 
76
76
        if not isinstance(val, (list, set)):
77
77
            val = [val]
78
 
        search = [col + ':"='+t+'"' for t in val]
 
78
        search = [col + ':"='+t.replace('"', '\\"')+'"' for t in val]
79
79
        if search:
80
80
            self.gui.search.set_search_string(join.join(search),
81
81
                    store_in_history=True)