summaryrefslogtreecommitdiff
path: root/efl/elementary/need.pyx
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2013-09-20 12:01:50 +0300
committerKai Huuhko <kai.huuhko@gmail.com>2013-09-20 12:01:50 +0300
commit88db824a77db54a4dc75a13d0aa23c0a6da59d4c (patch)
tree2c82696c5fa7eacea69587bed8e49cb35c6a9402 /efl/elementary/need.pyx
parentf8c332d6366149022306a84d027b1f2a29c66f97 (diff)
Change the _METHOD_DEPRECATED function into a decorator.
- move the decorator into a new package/module: utils/deprecated - simplify setup.py logic slightly, it still needs work
Diffstat (limited to 'efl/elementary/need.pyx')
-rw-r--r--efl/elementary/need.pyx9
1 files changed, 5 insertions, 4 deletions
diff --git a/efl/elementary/need.pyx b/efl/elementary/need.pyx
index 5a2669d..8f69e09 100644
--- a/efl/elementary/need.pyx
+++ b/efl/elementary/need.pyx
@@ -15,7 +15,7 @@
15# You should have received a copy of the GNU Lesser General Public License 15# You should have received a copy of the GNU Lesser General Public License
16# along with this Python-EFL. If not, see <http://www.gnu.org/licenses/>. 16# along with this Python-EFL. If not, see <http://www.gnu.org/licenses/>.
17 17
18from efl.eo cimport _METHOD_DEPRECATED 18from efl.utils.deprecated import DEPRECATED
19 19
20def need_efreet(): 20def need_efreet():
21 """need_efreet() -> bool 21 """need_efreet() -> bool
@@ -62,23 +62,24 @@ def need_sys_notify():
62 """ 62 """
63 return bool(elm_need_sys_notify()) 63 return bool(elm_need_sys_notify())
64 64
65@DEPRECATED
65def need_e_dbus(): 66def need_e_dbus():
66 """need_e_dbus() -> bool 67 """need_e_dbus() -> bool
67 68
68 Request that your elementary application needs e_dbus 69 Request that your elementary application needs e_dbus
69 70
70 This initializes the E_dbus library when called and if support exists 71 This initializes the e_dbus library when called and if support exists
71 it returns True, otherwise returns False. This must be called 72 it returns True, otherwise returns False. This must be called
72 before any e_dbus calls. 73 before any e_dbus calls.
73 74
74 :return: True if support exists and initialization succeeded. 75 :return: True if support exists and initialization succeeded.
75 :rtype: bool 76 :rtype: bool
76 77
77 :deprecated: Use :py:func:`need_edbus` for EDBus (v2) support. Old API is 78 .. deprecated:: 1.8
79 Use :py:func:`need_eldbus` for eldbus (v2) support. Old API is
78 deprecated. 80 deprecated.
79 81
80 """ 82 """
81 print("need_e_dbus() is deprecated. Use need_edbus instead.")
82 return bool(elm_need_eldbus()) 83 return bool(elm_need_eldbus())
83 84
84def need_eldbus(): 85def need_eldbus():