summaryrefslogtreecommitdiff
path: root/grc/base/Block.py
diff options
context:
space:
mode:
authorJosh Blum2009-08-29 01:04:58 -0700
committerJosh Blum2009-08-29 01:04:58 -0700
commit576d3978c7fafe5d6727c77281e3aad6d92074d2 (patch)
treefde88d38dd92a79571d1960f8e1fb9debd05b903 /grc/base/Block.py
parentcb794a7c8703ea06a9bce110fc1041140f25e8e6 (diff)
downloadgnuradio-576d3978c7fafe5d6727c77281e3aad6d92074d2.tar.gz
gnuradio-576d3978c7fafe5d6727c77281e3aad6d92074d2.tar.bz2
gnuradio-576d3978c7fafe5d6727c77281e3aad6d92074d2.zip
Replaced TYPES in Port and Param with types parameter.
Replaced odict in options for storing options with a list. Fix virtual port check in flow graph template.
Diffstat (limited to 'grc/base/Block.py')
-rw-r--r--grc/base/Block.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/grc/base/Block.py b/grc/base/Block.py
index d2266e783..737010305 100644
--- a/grc/base/Block.py
+++ b/grc/base/Block.py
@@ -91,7 +91,7 @@ class Block(Element):
'hide': 'all',
})
))
- for param in map(lambda n: self.get_parent().get_parent().Param(self, n), params):
+ for param in map(lambda n: self.get_parent().get_parent().Param(block=self, n=n), params):
key = param.get_key()
#test against repeated keys
try: assert key not in self.get_param_keys()
@@ -100,7 +100,7 @@ class Block(Element):
self.get_params().append(param)
#create the source objects
self._sources = list()
- for source in map(lambda n: self.get_parent().get_parent().Port(self, n, dir='source'), sources):
+ for source in map(lambda n: self.get_parent().get_parent().Port(block=self, n=n, dir='source'), sources):
key = source.get_key()
#test against repeated keys
try: assert key not in self.get_source_keys()
@@ -109,7 +109,7 @@ class Block(Element):
self.get_sources().append(source)
#create the sink objects
self._sinks = list()
- for sink in map(lambda n: self.get_parent().get_parent().Port(self, n, dir='sink'), sinks):
+ for sink in map(lambda n: self.get_parent().get_parent().Port(block=self, n=n, dir='sink'), sinks):
key = sink.get_key()
#test against repeated keys
try: assert key not in self.get_sink_keys()