Commits

Randy Syring  committed 81100eb

don't put system:template notes in catalog

  • Participants
  • Parent commits 5bd8119

Comments (0)

Files changed (2)

File changelog.rst

 =========================
 
 - fix launching of Tomboy subprocess so Launchy returns immediately
+- don't put system:template notes in catalog
 
 0.1.1 released 2012-12-15
 =========================

File launchytomboyplugin/lib.py

         for fpath in self.note_paths:
             root = et.parse(fpath).getroot()
             title = root.find('{http://beatniksoftware.com/tomboy}title')
+            tags = root.find('{http://beatniksoftware.com/tomboy}tags')
+            do_continue = False
+            if tags is not None:
+                for tag in tags.findall('{http://beatniksoftware.com/tomboy}tag'):
+                    if 'system:template' in tag.text:
+                        self.debug('Skipping system:template note: ', title.text)
+                        do_continue = True
+                        break
+            if do_continue:
+                continue
             if title is not None:
                 yield title.text
 
     ose['LAUNCHY_TOMBOY_DEBUG'] = '1'
     tbl = TomboyLib()
     tbl.debug_info()
-    tbl.new_note()
+    for title in tbl.note_titles:
+        pass
     print 'debug done'