Marcin Kasperski committed 38b42d6

Problematic example provided by Tim Cook (mlhim). Saved to verify whether
there is a problem and possibly convert to unittest (nice feature-rich
mindmap among the others)

Comments (0)

Files changed (3)


+This directory contains code snippets used to test some functionality
+or verify problem, but generally not intended to be used as examples
+or demonstrations.
Add a comment to this file


Binary file added.


+from mekk.xmind import XMindDocument
+xmind ="openEHR-EHR-OBSERVATION.apgar.v1.xmind")
+ccd_sheet = xmind.get_first_sheet()
+ccd = ccd_sheet.get_root_topic()
+print "CCD Title:       ", ccd.get_title()
+print "CCD Template Id: ", ccd.get_correlation_id()
+# here we need to compare the id to know which CCD template is being used.
+for cl in ccd.get_subtopics():  #current level
+    if cl.get_title() == 'definition':
+        x = True
+        while x:
+            nl = cl.get_suptopics() # next level generator
+            for cl in nl:
+                print cl.get_title()
+                if cl is None:
+                    x = False
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.