Commits

Ronny Pfannschmidt committed 6139d34

add a show function

  • Participants
  • Parent commits 635496d

Comments (0)

Files changed (1)

glas_process/ddoc.py

     },
 ]
 
+def showone(name, *path):
+    print name, path
+    origin = globals()[name]
+    design = ddoc[name]
+    for item in path:
+        origin = origin[item]
+        design = design[item]
+    print origin
+    print '-----'
+    print design
+
 
 def makeviews(data, path = ()):
     if isinstance(data, str):