Commits

Marcin Kasperski committed e7f5cca

Katalog python a nie n2x

  • Participants
  • Parent commits a35059d

Comments (0)

Files changed (2)

     die "$EGG_FILE not found. Setup failed?\n";
 }
 
-system("scp $EGG_FILE linode.mekk.waw.pl:www_download/nozbe2xmind/");
+system("scp $EGG_FILE linode.mekk.waw.pl:www_download/python/");
 
-print "Uploaded http://mekk.waw.pl/download/nozbe2xmind/$EGG_NAME\n";
+print "Uploaded http://mekk.waw.pl/download/python/$EGG_NAME\n";
 
-system("scp $XMP_FILE linode.mekk.waw.pl:www_download/nozbe2xmind/");
+system("scp $XMP_FILE linode.mekk.waw.pl:www_download/python/");
 
-print "Uploaded http://mekk.waw.pl/download/nozbe2xmind/$XMP_NAME\n";
+print "Uploaded http://mekk.waw.pl/download/python/$XMP_NAME\n";

src/mekk/nozbe2xmind/xmind_reader.py

                 if marker:
                     ctx_marker_to_hash[marker] = hash
 
+        # Lista nowych akcji. Nie zwracamy od razu, bo chcemy zrobić
+        # dopasowanie z skasowanymi (wykrywanie cut&paste)
+        added = []
+
         for project_topic in self.root.get_subtopics():
             project_hash = project_topic.get_embedded_id()
             if not project_hash:
                     if new['done']:
                         new['date'] = now_time
                     del new['done']
-                    yield None, new
+                    #yield None, new
+                    added.append(new)
                 else:
                     old = orig_lkp[ hash ]
                     del orig_lkp[hash]  # By zostały tylko skasowane
                     if mism:
                         log.debug("Changed field(s) in %s: %s" % (hash, mism))
                         yield old, mism
+
+        for a in added:
+            yield None, a
         # Zostały skasowane
         for old in orig_lkp.itervalues():
             yield old, None