davemds pushed a commit to branch master.

commit d53b481d4d96dc6f39c16e93803e3148f491bbf5
Author: davemds <[email protected]>
Date:   Mon Aug 19 12:56:22 2013 +0200

    PythonEFL: emotion_extension_may_play_get() does not need an obj instance, 
moved out of the Emotion class.
---
 efl/emotion/efl.emotion.pyx | 32 +++++++++++++++-----------------
 1 file changed, 15 insertions(+), 17 deletions(-)

diff --git a/efl/emotion/efl.emotion.pyx b/efl/emotion/efl.emotion.pyx
index 72af527..fa39807 100644
--- a/efl/emotion/efl.emotion.pyx
+++ b/efl/emotion/efl.emotion.pyx
@@ -103,7 +103,6 @@ class EmotionModuleInitError(Exception):
 def init():
     return emotion_init()
 
-
 def shutdown():
     return emotion_shutdown()
 
@@ -127,6 +126,21 @@ def webcams_get():
         itr = itr.next
     return ret
 
+def extension_may_play_get(filename):
+    """ Do we have a chance to play that file?
+
+    This just actually look at the extention of the file, it doesn't check
+    the mime-type nor if the file is actually sane. So this is just an
+    hint for your application.
+
+    :param filename: A filename that we want to know if Emotion can play.
+    :type filename: str
+
+    """
+    if isinstance(filename, unicode): filename = 
PyUnicode_AsUTF8String(filename)
+    return bool(emotion_object_extension_may_play_get(
+        <const_char *>filename if filename is not None else NULL))
+
 
 cdef class Emotion(evasObject):
     """ The emotion object
@@ -456,7 +470,6 @@ cdef class Emotion(evasObject):
     def suspend_set(self, Emotion_Suspend a):
         emotion_object_suspend_set(self.obj, a)
 
-
     property buffer_size:
         """ The percentual size of the buffering cache.
 
@@ -999,21 +1012,6 @@ cdef class Emotion(evasObject):
         """
         emotion_object_last_position_save(self.obj)
 
-    def extension_may_play_get(self, filename):
-        """ Do we have a chance to play that file?
-
-        This just actually look at the extention of the file, it doesn't check
-        the mime-type nor if the file is actually sane. So this is just an
-        hint for your application.
-
-        :param filename: A filename that we want to know if Emotion can play.
-        :type filename: str
-
-        """
-        if isinstance(filename, unicode): filename = 
PyUnicode_AsUTF8String(filename)
-        return bool(emotion_object_extension_may_play_get(
-            <const_char *>filename if filename is not None else NULL))
-
     def image_get(self):
         """ Get the actual image object (:py:class:`efl.evas.Object`) of the
         emotion object.

-- 

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk

Reply via email to