1. Bilal Akhtar
  2. moin-2.0-gci

Commits

Thomas Waldmann  committed 91f6360

archive converter: we get a revision object, use rev.data for the file

  • Participants
  • Parent commits b172baf
  • Branches default

Comments (0)

Files changed (1)

File MoinMoin/converter/archive_in.py

View file
     def process_size(self, size):
         return unicode(size)
 
-    def __call__(self, fileobj, contenttype=None, arguments=None):
-        # we get a revision as fileobj
-        self.item_name = fileobj.item.name
+    def __call__(self, rev, contenttype=None, arguments=None):
+        self.item_name = rev.item.name
         try:
-            contents = self.list_contents(fileobj)
+            contents = self.list_contents(rev.data)
             contents = [(self.process_size(size),
                          self.process_datetime(dt),
                          self.process_name(name),