[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyKDE] [PATCH]Fixed 'is' method for KMimeType
From: Kushal Das <kushaldas () gmail ! com>
Date: 2006-11-06 0:55:24
Message-ID: 200611060613.31159.kushaldas () gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
[Attachment #4 (multipart/mixed)]
Hi,
In PyKDE-3.16.0/sip/kio/kmimetype.sip the 'is(const QString&)' needs to be
modified because 'is' is a reserved keyword in python.
The change is the addition of /PyName=is_/
So, it can be used as KMimeType.is_('image/png')
Patch attached :)
Regards,
Kushal
--
Fedora Ambassador, India
http://kushaldas.blogspot.com
["kmimetype.diff" (text/x-diff)]
--- sip/kio/kmimetype.sip 2006-09-22 18:41:53.000000000 +0530
+++ ../../build/PyKDE-3.16.0/sip/kio/kmimetype.sip 2006-11-06 05:27:39.000000000 +0530
@@ -101,7 +101,7 @@
%If ( KDE_3_2_0 - )
static KMimeType::Ptr defaultMimeTypePtr ();
QString parentMimeType () const;
- bool is (const QString&) const;
+ bool is (const QString&) const /PyName=is_/; //'is' is a reserved keyword in python
static KMimeType::Ptr diagnoseFileName (const QString&, QString&);
%End
[Attachment #8 (application/pgp-signature)]
_______________________________________________
PyKDE mailing list PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic