Hello community, here is the log from the commit of package python-kde4 for openSUSE:Factory checked in at Wed Jul 27 17:59:54 CEST 2011.
-------- --- python-kde4/python-kde4.changes 2011-07-21 15:49:11.000000000 +0200 +++ /mounts/work_src_done/STABLE/python-kde4/python-kde4.changes 2011-07-22 20:30:37.000000000 +0200 @@ -1,0 +2,8 @@ +Fri Jul 22 20:30:35 CEST 2011 - [email protected] + +- update to 4.7.0 + * Small fixes over KDE 4.7 RC2 + * see http://kde.org/announcements/4.7 for details + + +------------------------------------------------------------------- calling whatdependson for head-i586 Old: ---- pykde4-4.6.95.tar.bz2 New: ---- pykde4-4.7.0.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-kde4.spec ++++++ --- /var/tmp/diff_new_pack.7zB2lI/_old 2011-07-27 17:53:34.000000000 +0200 +++ /var/tmp/diff_new_pack.7zB2lI/_new 2011-07-27 17:53:34.000000000 +0200 @@ -28,7 +28,7 @@ License: LGPLv2.1+ Group: Development/Libraries/KDE Summary: kdebindings python-kde library -Version: 4.6.95 +Version: 4.7.0 Release: 1 Source0: pykde4-%version.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build ++++++ pykde4-4.6.95.tar.bz2 -> pykde4-4.7.0.tar.bz2 ++++++ Files old/pykde4-4.6.95/tools/cmake_project/sample_project/doc/en/index.cache.bz2 and new/pykde4-4.7.0/tools/cmake_project/sample_project/doc/en/index.cache.bz2 differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pykde4-4.6.95/tools/pykdeuic4/pykdeuic4.py new/pykde4-4.7.0/tools/pykdeuic4/pykdeuic4.py --- old/pykde4-4.6.95/tools/pykdeuic4/pykdeuic4.py 2011-05-20 22:33:41.000000000 +0200 +++ new/pykde4-4.7.0/tools/pykdeuic4/pykdeuic4.py 2011-07-19 23:34:11.000000000 +0200 @@ -38,6 +38,40 @@ from PyKDE4 import kdeui """ +DISPLAY_CODE = """ +if __name__ == '__main__': + import sys + global app + class MainWin(kdeui.KMainWindow, %s): + def __init__ (self, *args): + kdeui.KMainWindow.__init__ (self) + rootWidget = QtGui.QWidget(self) + self.setupUi(rootWidget) + self.resize(640, 480) + self.setCentralWidget(rootWidget) + + appName = "default" + catalog = "" + programName = kdecore.ki18n("default") + version = "1.0" + description = kdecore.ki18n("Default Example") + license = kdecore.KAboutData.License_GPL + copyright = kdecore.ki18n("unknown") + text = kdecore.ki18n("none") + homePage = "" + bugEmail = "email" + + aboutData = kdecore.KAboutData(appName, catalog, programName, version, description, + license, copyright, text, homePage, bugEmail) + kdecore.KCmdLineArgs.init(sys.argv, aboutData) + + app = kdeui.KApplication() + mainWindow = MainWin(None, "main window") + mainWindow.show() + app.lastWindowClosed.connect(app.quit) + app.exec_ () +""" + # Override how messages are translated. original_i18n_string = qtproxies.i18n_string @@ -53,26 +87,6 @@ qtproxies.i18n_string = kde_i18n_string -def kdeFilter(): - - """Filter used to make the UI compiler PyKDE4-aware""" - - import PyKDE4.kdeui - import PyKDE4.kio - - # Load in the lists of KDE widgets. - kde_widgets = {} - for name,mod in [ ('PyKDE4.kdeui',PyKDE4.kdeui), ('PyKDE4.kio',PyKDE4.kio)]: - for symbol in dir(mod): - kde_widgets[symbol] = name - - def _kdefilter(widgetname, baseclassname, module): - - if widgetname in kde_widgets: - return (MATCH, (widgetname, baseclassname, kde_widgets[widgetname])) - else: - return (NO_MATCH, None) - return _kdefilter def processUI(uifile, output_filename=None, exe=False, indent=4): @@ -87,47 +101,15 @@ output.write(HEADER % (uifile, time.ctime())) indenter.indentwidth = indent comp = compiler.UICompiler() - comp.factory._cwFilters.append(kdeFilter()) winfo = comp.compileUi(uifile, output, None) if exe: - output.write(""" -if __name__ == '__main__': - import sys - global app - class MainWin(kdeui.KMainWindow, """ + winfo['uiclass'] + """): - def __init__ (self, *args): - kdeui.KMainWindow.__init__ (self) - rootWidget = QtGui.QWidget(self) - self.setupUi(rootWidget) - self.resize(640, 480) - self.setCentralWidget(rootWidget) - - appName = "default" - catalog = "" - programName = kdecore.ki18n("default") - version = "1.0" - description = kdecore.ki18n("Default Example") - license = kdecore.KAboutData.License_GPL - copyright = kdecore.ki18n("unknown") - text = kdecore.ki18n("none") - homePage = "" - bugEmail = "email" - - aboutData = kdecore.KAboutData(appName, catalog, programName, version, description, - license, copyright, text, homePage, bugEmail) - kdecore.KCmdLineArgs.init(sys.argv, aboutData) - - app = kdeui.KApplication() - mainWindow = MainWin(None, "main window") - mainWindow.show() - app.lastWindowClosed.connect(app.quit) - app.exec_ () -""") + output.write(DISPLAY_CODE % winfo["uiclass"]) if output_filename is not None: output.close() + def main(): usage = "pykdeuic4 [-h] [-e] [-o output_file] ui_file" @@ -152,5 +134,6 @@ processUI(source_ui, output_filename, exe) + if __name__ == '__main__': main() ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
