~stub/ubuntu/precise/calibre/devel

« back to all changes in this revision

Viewing changes to src/calibre/gui2/convert/metadata.py

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2011-04-12 11:29:25 UTC
  • mfrom: (42.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110412112925-c7171kt2bb5rmft4
Tags: 0.7.50+dfsg-2
* debian/control: Build with libpodofo-dev to enable PDF metadata.
  (Closes: #619632)
* debian/control: Add libboost1.42-dev build dependency. Apparently it is
  needed in some setups. (Closes: #619807)
* debian/rules: Call dh_sip to generate a proper sip API dependency, to
  prevent crashes like #616372 for partial upgrades.
* debian/control: Bump python-qt4 dependency to >= 4.8.3-2, which reportedly
  fixes crashes on startup. (Closes: #619701, #620125)

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
from calibre.gui2.convert import Widget
20
20
from calibre.utils.icu import sort_key
21
21
from calibre.library.comments import comments_to_html
 
22
from calibre.utils.config import tweaks
22
23
 
23
24
def create_opf_file(db, book_id):
24
25
    mi = db.get_metadata(book_id, index_is_id=True)
108
109
        all_authors.sort(key=lambda x : sort_key(x[1]))
109
110
        self.author.set_separator('&')
110
111
        self.author.set_space_before_sep(True)
 
112
        self.author.set_add_separator(tweaks['authors_completer_append_separator'])
111
113
        self.author.update_items_cache(self.db.all_author_names())
112
114
 
113
115
        for i in all_authors: