From a402fc432ec2019e5bfc70c3f78beef83b450f01 Mon Sep 17 00:00:00 2001
From: Josh Morman <jmorman@perspectalabs.com>
Date: Thu, 1 Aug 2019 16:52:26 -0400
Subject: grc: embedded python module show_id flag

It is necessary to have access to the show_id flag for a python module
in grc to be able to access it elsewhere.  This adds the flag when the
module object is created in the block library.
---
 grc/core/blocks/embedded_python.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'grc/core/blocks/embedded_python.py')

diff --git a/grc/core/blocks/embedded_python.py b/grc/core/blocks/embedded_python.py
index ea9f71abad..94b40580c9 100644
--- a/grc/core/blocks/embedded_python.py
+++ b/grc/core/blocks/embedded_python.py
@@ -230,12 +230,15 @@ class EPyModule(Block):
         to set parameters of other blocks in your flowgraph.
     """)}
 
+    epy_flags=Block.flags
+    epy_flags.set(epy_flags.SHOW_ID)
+
     parameters_data = build_params(
         params_raw=[
             dict(label='Code', id='source_code', dtype='_multiline_python_external',
                  default='# this module will be imported in the into your flowgraph',
                  hide='part')
-        ], have_inputs=False, have_outputs=False, flags=Block.flags, block_id=key
+        ], have_inputs=False, have_outputs=False, flags=epy_flags, block_id=key
     )
 
     templates = MakoTemplates(
-- 
cgit v1.2.3