home *** CD-ROM | disk | FTP | other *** search
- #python
-
-
- def ListProperties(Node, Level, Name):
-
- indent = ""
-
- for j in range(Level):
- indent = indent + "\t"
-
- print "PROCESSING ", Name
-
- if Node.Children():
- for i in Node.Children():
- print indent, " child (", Name, ") : ", i
- ListProperties(Node.GetNode(i), Level + 1, i)
-
- #for i in Node.Children():
- # print indent, " child : ", i
- # if i == "document":
- # print "OK!"
- # newnode = Node.GetNode(i)
- # for j in newnode.Children():
- # print indent, "\t schild : ", j
- # print indent, "properties: "
- # for k in newnode.ListProperties():
- # print indent, "\t prop : ", k.Name()
-
- #print "Properties : "
- #print "Prop : ", Node.Name()
- #if Node.ListProperties():
- # for i in Node.ListProperties():
- # print indent," property : ", i, " = ", Node.GetProperty(i)
- #for i in Node.Properties():
- # print indent," property : ", i.Name()
-
-
-
- # Main
- mainnode = Application.CommandNode("/application")
- ListProperties(mainnode, 0, "application")
-
-
-
-