From 4be2523ecc678365c52701a37a1b13c285bef0ba Mon Sep 17 00:00:00 2001
From: Sebastian Koslowski <koslowski@kit.edu>
Date: Mon, 25 Apr 2016 21:59:55 +0200
Subject: grc: add warning for block flagged deprecated

---
 grc/core/Block.py | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'grc/core/Block.py')

diff --git a/grc/core/Block.py b/grc/core/Block.py
index ab4174ce66..f67d990857 100644
--- a/grc/core/Block.py
+++ b/grc/core/Block.py
@@ -27,6 +27,7 @@ from . Constants import (
     BLOCK_FLAG_NEED_QT_GUI, BLOCK_FLAG_NEED_WX_GUI,
     ADVANCED_PARAM_TAB, DEFAULT_PARAM_TAB,
     BLOCK_FLAG_THROTTLE, BLOCK_FLAG_DISABLE_BYPASS,
+    BLOCK_FLAG_DEPRECATED,
     BLOCK_ENABLED, BLOCK_BYPASSED, BLOCK_DISABLED
 )
 from . Element import Element
@@ -626,6 +627,10 @@ class Block(Element):
     def bypass_disabled(self):
         return BLOCK_FLAG_DISABLE_BYPASS in self._flags
 
+    @property
+    def is_deprecated(self):
+        return BLOCK_FLAG_DEPRECATED in self._flags
+
     ##############################################
     # Access Params
     ##############################################
-- 
cgit v1.2.3