Fix regression affecting recipes that use the time module. Fix regression affecting creation of eggs for linux distribution. Fix #1455 (Growl Messages - Encoding of Umlaute)

This commit is contained in:
Kovid Goyal 2008-12-25 21:06:23 -08:00
parent 93483213d6
commit 653cbd13e7
6 changed files with 10 additions and 5 deletions

View File

@ -402,6 +402,8 @@ if __name__ == '__main__':
extra_link_args=['-framework', 'IOKit']) extra_link_args=['-framework', 'IOKit'])
) )
plugins = ['plugins/%s.so'%(x.name.rpartition('.')[-1]) for x in ext_modules]
setup( setup(
name = APPNAME, name = APPNAME,
packages = find_packages('src'), packages = find_packages('src'),
@ -410,7 +412,7 @@ if __name__ == '__main__':
author = 'Kovid Goyal', author = 'Kovid Goyal',
author_email = 'kovid@kovidgoyal.net', author_email = 'kovid@kovidgoyal.net',
url = 'http://%s.kovidgoyal.net'%APPNAME, url = 'http://%s.kovidgoyal.net'%APPNAME,
package_data = {'calibre':['plugins/*']}, package_data = {'calibre':plugins},
include_package_data = True, include_package_data = True,
entry_points = entry_points, entry_points = entry_points,
zip_safe = False, zip_safe = False,

View File

Before

Width:  |  Height:  |  Size: 282 B

After

Width:  |  Height:  |  Size: 282 B

View File

@ -120,7 +120,7 @@ class Main(MainWindow, Ui_MainWindow):
self.hide() if self.isVisible() else self.show() self.hide() if self.isVisible() else self.show()
self.connect(self.system_tray_icon, SIGNAL('activated(QSystemTrayIcon::ActivationReason)'), sta) self.connect(self.system_tray_icon, SIGNAL('activated(QSystemTrayIcon::ActivationReason)'), sta)
def tcme(self, *args): def tcme(self, *args):
print args pass
self.tool_bar.contextMenuEvent = tcme self.tool_bar.contextMenuEvent = tcme
####################### Location View ######################## ####################### Location View ########################
QObject.connect(self.location_view, SIGNAL('location_selected(PyQt_PyObject)'), QObject.connect(self.location_view, SIGNAL('location_selected(PyQt_PyObject)'),

View File

@ -5,7 +5,7 @@ import re, collections
from PyQt4.QtGui import QStatusBar, QMovie, QLabel, QWidget, QHBoxLayout, QPixmap, \ from PyQt4.QtGui import QStatusBar, QMovie, QLabel, QWidget, QHBoxLayout, QPixmap, \
QVBoxLayout, QSizePolicy, QToolButton, QIcon, QScrollArea, QFrame QVBoxLayout, QSizePolicy, QToolButton, QIcon, QScrollArea, QFrame
from PyQt4.QtCore import Qt, QSize, SIGNAL, QCoreApplication from PyQt4.QtCore import Qt, QSize, SIGNAL, QCoreApplication
from calibre import fit_image, preferred_encoding from calibre import fit_image, preferred_encoding, isosx
from calibre.gui2 import qstring_to_unicode from calibre.gui2 import qstring_to_unicode
class BookInfoDisplay(QWidget): class BookInfoDisplay(QWidget):
@ -196,9 +196,12 @@ class StatusBar(QStatusBar):
self.book_info.show_data({}) self.book_info.show_data({})
def showMessage(self, msg, timeout=0): def showMessage(self, msg, timeout=0):
ret = QStatusBar.showMessage(self, msg, timeout)
if self.systray is not None: if self.systray is not None:
if isosx and isinstance(msg, unicode):
msg = msg.encode(preferred_encoding)
self.systray.showMessage('calibre', msg, self.systray.Information, 10000) self.systray.showMessage('calibre', msg, self.systray.Information, 10000)
return QStatusBar.showMessage(self, msg, timeout) return ret
def jobs(self): def jobs(self):
src = qstring_to_unicode(self.movie_button.jobs.text()) src = qstring_to_unicode(self.movie_button.jobs.text())

View File

@ -19,7 +19,7 @@ recipe_modules = [
'clarin', 'financial_times', 'heise', 'le_monde', 'harpers', 'science_aas', 'clarin', 'financial_times', 'heise', 'le_monde', 'harpers', 'science_aas',
'science_news', 'the_nation', 'lrb', 'harpers_full', 'liberation', 'science_news', 'the_nation', 'lrb', 'harpers_full', 'liberation',
'linux_magazine', 'telegraph_uk', 'utne', 'sciencedaily', 'forbes', 'linux_magazine', 'telegraph_uk', 'utne', 'sciencedaily', 'forbes',
'time', 'endgadget', 'fudzilla', 'time_magazine', 'endgadget', 'fudzilla',
] ]
import re, imp, inspect, time, os import re, imp, inspect, time, os