Stop paginating items
authorJack Miller <jack@codezen.org>
Mon, 15 Jun 2015 22:14:35 +0000 (17:14 -0500)
committerJack Miller <jack@codezen.org>
Tue, 16 Jun 2015 06:21:58 +0000 (01:21 -0500)
ITEMSDONE is still present, but obsolete.

canto_next/canto_backend.py

index 603608a..1f09f06 100644 (file)
@@ -374,17 +374,13 @@ class CantoBackend(PluginHandler, CantoServer):
             if len(items) == 0:
                 self.write(socket, "ITEMS", { tag : [] })
             else:
-                while len(items):
-                    chunk = items[:100]
-                    items = items[100:]
+                attr_req = {}
+                if socket in self.autoattr:
+                    for id in items:
+                        attr_req[id] = self.autoattr[socket][:]
 
-                    attr_req = {}
-                    if socket in self.autoattr:
-                        for id in chunk:
-                            attr_req[id] = self.autoattr[socket][:]
-
-                    self.write(socket, "ITEMS", { tag : chunk })
-                    attr_list.append(attr_req)
+                self.write(socket, "ITEMS", { tag : items })
+                attr_list.append(attr_req)
 
             self.write(socket, "ITEMSDONE", {})