/[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 1852 by jpye, Thu Aug 14 14:11:09 2008 UTC revision 1853 by jpye, Thu Sep 11 06:13:47 2008 UTC
# Line 39  for m in M: Line 39  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.          # 'block' types are only those which are parametric.
42          if not t.hasParameters():          #if not t.hasParameters():
43              continue          #   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.1852  
changed lines
  Added in v.1853

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