/[ascend]/trunk/pygtk/blocklist.py
ViewVC logotype

Diff of /trunk/pygtk/blocklist.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1813 by jpye, Thu Aug 14 14:03:41 2008 UTC revision 1814 by jpye, Thu Aug 14 14:11:09 2008 UTC
# Line 38  blocktypes = set() Line 38  blocktypes = set()
38  for m in M:  for m in M:
39      T = L.getModuleTypes(m)      T = L.getModuleTypes(m)
40      for t in T:      for t in T:
41            # 'block' types are only those which are parametric.
42            if not t.hasParameters():
43                continue
44          x = str(D.getNoteForVariable(t,ascpy.SymChar("inlet"),ascpy.SymChar("inline")))          x = str(D.getNoteForVariable(t,ascpy.SymChar("inlet"),ascpy.SymChar("inline")))
45          if x[0:max(3,len(x))] == "in:" or x[0:max(4,len(x))] == "out:":          if x[0:max(3,len(x))] == "in:" or x[0:max(4,len(x))] == "out:":
46              blocktypes.add(t)              blocktypes.add(t)

Legend:
Removed from v.1813  
changed lines
  Added in v.1814

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22