kuuko pushed a commit to branch master.

http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=1ff67d2545265bde72fe60c37df18f3e8ff84e28

commit 1ff67d2545265bde72fe60c37df18f3e8ff84e28
Author: Kai Huuhko <kai.huu...@gmail.com>
Date:   Mon Nov 4 07:27:43 2013 +0200

    Elementary: Add compatibility methods ObjectItem.data_set/get.
    
    They are marked as deprecated.
---
 efl/elementary/object_item.pyx | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/efl/elementary/object_item.pyx b/efl/elementary/object_item.pyx
index 308be74..7761922 100644
--- a/efl/elementary/object_item.pyx
+++ b/efl/elementary/object_item.pyx
@@ -19,6 +19,7 @@ from cpython cimport PyUnicode_AsUTF8String, Py_DECREF, 
Py_INCREF
 
 from efl.eo cimport _object_mapping_register, object_from_instance, PY_REFCOUNT
 from efl.utils.conversions cimport _ctouni
+from efl.utils.deprecated cimport DEPRECATED
 from efl.evas cimport Object as evasObject
 
 include "tooltips.pxi"
@@ -137,6 +138,15 @@ cdef class ObjectItem(object):
             repr(object_from_instance(elm_object_item_widget_get(self.item)))
             )
 
+    @DEPRECATED("1.8", "Use the data attribute (dict) instead.")
+    def data_get(self):
+        return (self.args, self.kwargs)
+
+    @DEPRECATED("1.8", "Use the data attribute (dict) instead.")
+    def data_set(self, *args, **kwargs):
+        self.args = args
+        self.kwargs = kwargs
+
     property widget:
         """Get the widget object's handle which contains a given item
 

-- 


Reply via email to