28274 Commits

Author SHA1 Message Date
Kovid Goyal
28ca52be0b ... 2013-10-17 15:31:09 +05:30
Kovid Goyal
dba9397a5e Fix a few remaining downgrade locking errors
Fix a few remaining call sites that could generate downgrade lock
errors. Also speed up locking a little by aliasing the __enter__ and
__exit__ methods on the wrapper lock object instead of wrapping them.
2013-10-17 15:25:26 +05:30
Kovid Goyal
9296118d7a Make deleting to recycle bin more robust
Make deleting books to recycle bin more robust. Ensure that the
temporary directory created during the move to recycle bin process is
not left behind in case of errors.
2013-10-17 14:22:16 +05:30
Kovid Goyal
965db88065 Printout tracebacks in debug mode for exception during template processing 2013-10-17 14:14:47 +05:30
Kovid Goyal
73e7ddcefe Update WSJ some more 2013-10-17 13:10:16 +05:30
Kovid Goyal
b059e839ac Fix typos in linux_swap_drives() in a few other devices 2013-10-17 13:02:47 +05:30
Kovid Goyal
6b575eba33 Windows: Check if the books' files are in use before deleting
Fixes #1240788 [Calibre refused to delete book](https://bugs.launchpad.net/calibre/+bug/1240788)
2013-10-17 12:34:35 +05:30
Kovid Goyal
09775678bb Fix custom device driver swap main and card option not working 2013-10-17 12:28:00 +05:30
Kovid Goyal
1c0849446b Conversion: Handle embed font family and filter css conflict
Conversion: If both embed font family and the filter css option to
remove fonts are set, do not remove the font specified by the embed font
family option.
2013-10-17 09:07:15 +05:30
Kovid Goyal
42cc5b2813 Update Newsweek Polska 2013-10-17 08:26:05 +05:30
Kovid Goyal
66a88b5d6e Fix #1240644 [Chapter threshold maximum of 99 is insufficient](https://bugs.launchpad.net/calibre/+bug/1240644) 2013-10-17 08:20:19 +05:30
Kovid Goyal
8d544eaada Sort non spine items in the file list 2013-10-16 21:33:22 +05:30
Kovid Goyal
12718e6785 Confirm on quit if unsaved changes present 2013-10-16 21:16:26 +05:30
Kovid Goyal
1e3d8983e1 ... 2013-10-16 20:40:26 +05:30
Kovid Goyal
494a252f3f Saving implemented 2013-10-16 17:57:15 +05:30
Kovid Goyal
f4d132b823 Start work on saving 2013-10-16 16:12:53 +05:30
Kovid Goyal
8cc9440847 Move join_with_timeout into the utils module 2013-10-16 13:53:17 +05:30
Kovid Goyal
e60dce0133 Properly initialize standalone comments editing box 2013-10-16 13:22:34 +05:30
Kovid Goyal
f11ab7d0c3 Use same code for initializing CC comments editor as for builtin comments editor 2013-10-16 11:19:38 +05:30
Kovid Goyal
c58e7eb2e8 Implement saving of main window state and quit action 2013-10-16 10:03:21 +05:30
Kovid Goyal
bec396158a Update Wall Street Journal
See #1239477 (Private bug)
2013-10-15 22:03:43 +05:30
Kovid Goyal
4768f29bf2 Update Wired Magazine 2013-10-15 20:49:10 +05:30
Kovid Goyal
d1f35bebdf Hook up global undo/redo 2013-10-15 16:23:13 +05:30
Kovid Goyal
b49417adfd Fix removal of textures not working
Also credit subtlepatterns in the texture chooser dialog.
2013-10-15 11:45:52 +05:30
Kovid Goyal
a43941dc0d Allow using textures for cover grid background
Cover grid: Allow using images as the background for the cover grid. To
choose an image, go to Preferences->Look & Feel->Cover Grid. Fixes #1239194 [[Ideas] -->book grid](https://bugs.launchpad.net/calibre/+bug/1239194) [[Ideas] -->book grid](https://bugs.launchpad.net/calibre/+bug/1239194)

The builtin textures come from subtlepatterns.com
2013-10-15 11:13:03 +05:30
Kovid Goyal
2277ed4b17 ... 2013-10-15 09:28:08 +05:30
Kovid Goyal
c9f5f787b3 Edit metadata dialog: Fix incorrect size on multi-screen setup
Edit metadata dialog: The dit metadata dialog currently limits its max
size based on the geometry of the smallet attached screen. Change that
to use the geometry of the screen on which it will be shown.
Fixes #1239597 [metadata window height not remembered](https://bugs.launchpad.net/calibre/+bug/1239597)
2013-10-15 09:05:54 +05:30
Kovid Goyal
78f840906e Update cracked.com 2013-10-15 08:56:51 +05:30
Kovid Goyal
3348817b2e HTMLZ Output: Various fixes
HTMLZ Output: Fix <style> tag placed inside <body> instead of <head>.
See #1239530 (Htmlz conversion places <head> in <body>, not before)

HTMLZ Output: Fix inline styles not escaping quotes properly. See #1239527 (Htmlz inline css doesn't single quote fonts & thus destroys html)

HTMLZ Output: Fix incorrect handling of some self closing tags like
<br>. See #1239555 (Htmlz conversion incorrectly handles <br/>)

Merge branch 'master' of https://github.com/user-none/calibre
2013-10-15 08:52:33 +05:30
John Schember
8b9f5bfe85 Fix issue #1239555: Htmlz conversion incorrectly handles <br/>. 2013-10-14 20:22:37 -04:00
John Schember
219f4c632f Fix issue #1239530: Htmlz conversion places <head> in <body>, not before. 2013-10-14 20:13:14 -04:00
John Schember
4e1e5d9a86 Fix issue #1239527: Htmlz inline css doesn't single quote fonts & thus destroys html. 2013-10-14 20:11:20 -04:00
Kovid Goyal
2a336ab7a7 Content server: Use internal redirect for single item categories
Content server: Fix single item categories not working with reverse
proxy setup. Fixes #1238987 [Calibre behind apache server sometimes returns 'localhost' URLs](https://bugs.launchpad.net/calibre/+bug/1238987)

Single item categories were using HTTP 303 redirects which are resolved to
http://localhost:8080 absolute URLs by cherrpy (since cherrypy has no
knowledge of whatever server the apache process is exposed as). SO
instead we use an internal redirect, which does not suffer from this
issue. It does mean that bookmarking the URL wil have unexpected
side-effects if the number of items in the catefory ever increases to
more than one.
2013-10-14 19:12:03 +05:30
Kovid Goyal
ecf1e290b8 Update Television Without Pity 2013-10-14 10:17:04 +05:30
Kovid Goyal
38a4942a6e Update Carta 2013-10-14 10:08:41 +05:30
Kovid Goyal
f1a3bc8b2e Start work on global undo/redo for tweaking 2013-10-13 08:35:30 +05:30
Kovid Goyal
fac708b267 Update Diagonales
Fixes #1239235 [Updated recipe for Diagonales](https://bugs.launchpad.net/calibre/+bug/1239235)
2013-10-13 07:50:48 +05:30
Kovid Goyal
22289f95d4 Fix crashes when switching libraries with marked books
Fix a bug that could cause calibre to crash when switching from a large
library to a smaller library with marked books. Fixes #1239210 [Calibre 1.6 64bits crashes when changing library](https://bugs.launchpad.net/calibre/+bug/1239210)
2013-10-13 07:36:49 +05:30
Kovid Goyal
de2dbf73cd Get Books: Fix downloading of some books in formats that do not have metadata yielding nonsense titles
Merge branch 'master' of https://github.com/user-none/calibre
2013-10-13 07:18:51 +05:30
John Schember
00af6187a3 Fix title of downloaded ebooks. 2013-10-12 18:26:21 -04:00
Kovid Goyal
12e83a09b0 Allow marked book button to be added to main toolbar when device is connected
Fixes #1239163 [Mark Books cannot be added to "The main menu when a device is connected"](https://bugs.launchpad.net/calibre/+bug/1239163)
2013-10-12 22:37:53 +05:30
Kovid Goyal
00e0901249 Fix error if a marked book is deleted/merged.
Fixes #1239161 [Unhandled exception using "Mark books" feature](https://bugs.launchpad.net/calibre/+bug/1239161)
2013-10-12 22:35:15 +05:30
Kovid Goyal
0cfc152b05 Merge branch 'master' of https://github.com/cbhaley/calibre 2013-10-12 22:08:38 +05:30
Charles Haley
6afd231a14 Fix formatter function days_between to compute the right value when the answer is negative. 2013-10-12 18:36:18 +02:00
GRiker
2cecccb568 Merge branch 'master' of https://github.com/kovidgoyal/calibre 2013-10-12 05:16:56 -06:00
GRiker
b108bfadee Fixed typo in diagnostic 2013-10-12 05:16:25 -06:00
Kovid Goyal
9038754c71 Merge branch 'master' of https://github.com/cbhaley/calibre 2013-10-12 16:34:19 +05:30
Charles Haley
ddcaacc413 Robustness improvements in smart device driver 2013-10-12 12:55:54 +02:00
Kovid Goyal
a03309a7b7 ... 2013-10-12 14:36:39 +05:30
Kovid Goyal
f571e6f066 Add Open Book action 2013-10-12 14:30:15 +05:30