Source

mekk.feeds / src / mekk / feeds / greader2org / initial_load.py

Diff from to

File src/mekk/feeds/greader2org/initial_load.py

 
 class InitialLoad(BaseCommand):
     """
-    Pierwszy import z Google Readera (stworzenie inicjalnej wersji
-    pliku do zarządzania feedami)
+    Initial import from Google Reader (creating first version
+    of text mirror file).
     """
 
     def execute(self):
         
         subs = self.reader.get_subscription_list()
         
-        # tag (dla nieotagowanych 'ZZZ: Unlabeled') ---> lista elementów
+        # tag (for untagged 'ZZZ: Unlabeled') ---> list of matching elements
         subscribed = defaultdict(lambda : [])
         
         for item in subs['subscriptions']:
         
             subscribed[label].append( dict(feed = feed, title = title) )
 
-        #org_save = file(self.org.org_file, "w")
-        
         for label in sorted(subscribed.keys()):
             folder = Folder(label)
             self.org.add_folder(folder)
 
             print "Creating folder %s" % label
 
-            #org_save.write("* %s\n\n" % label.encode("utf-8"))
             for info in subscribed[label]:
-                #org_save.write( ("** %s\n\n   feed: %s\n\n" % (info['title'], info['feed'])).encode("utf-8") )
                 feed = Feed(info['title'], [], info['feed'],
                             None, None, "")
                 folder.add_feed(feed)
                 print "   adding feed %s" % info['title']
         
-        #org_save.close()
         self.org.save_to()