Example #1
0
def gather_node_paths(node, pathset):
    # Recursively examines every node under a starting subnet, converts the
    # node into a help path, and adds it to the given set

    nodetype = node.type()
    tablename = nodetype.category().name()
    typename = nodetype.name()

    # Try to ignore uninteresting nodes
    if typename != "subnet" and tablename not in ("VopNet", "Manager"):
        path = nodetype_to_path(nodetype)
        pathset.add(path)

    for n in node.children():
        # Ignore nodes inside locked assets
        if not n.isInsideLockedHDA():
            gather_node_paths(n, pathset)
Example #2
0
def check_docs(node):
    nodetype = node.type()
    pages = api.get_pages()
    helppath = api.nodetype_to_path(nodetype)
    sourcepath = pages.source_path(helppath)
    return pages.store.exists(sourcepath)
Example #3
0
 def list_all(self, path="/"):
     for hdadef in self._find_all_assets():
         if hdadef.embeddedHelp() and not self._asset_is_hidden(hdadef):
             nodepath = api.nodetype_to_path(hdadef.nodeType())
             if nodepath.startswith(path):
                 yield nodepath + ".txt"