]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tools/tinyos/ncc/nesdoc-py/archive.py
quick fix for commands in specs of generic components - produces large XML files
[tinyos-2.x.git] / tools / tinyos / ncc / nesdoc-py / archive.py
index 99f4cda3f5a7d427798729a8642b40d055e45342..4fcc05b11a0ccf8a313269103b6e06d08f9f6c4b 100644 (file)
@@ -150,7 +150,8 @@ for x in interfaces.getElementsByTagName("interface"):
 # and bare commands, events
 for x in functions.getElementsByTagName("function"):
   # hack: tasks don't show up with a command/event attribute
-  if x.hasAttribute("event") or x.hasAttribute("command"):
+  # don't include commands/events from interfaces
+  if (x.hasAttribute("event") or x.hasAttribute("command")) and (not xml_tag(x, "interface-ref")):
     incomponent = get1(x, "component-ref").getAttribute("qname")
     if speclist.has_key(incomponent):
       speclist[incomponent].append(x)