Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 6 commits
  • 2 files changed
  • 0 comments
  • 3 contributors
Aug 25, 2013
fruehwir Update item.py
fixed Item.getChildren bug (see fcheslack#11)
0175798
fruehwir Update items.py
fixed Item.getChildren bug (see fcheslack#11)
c0553ea
Dec 10, 2013
Faolan C-P Merge pull request #14 from paregorios/master
python: fetching export formats, respect backoff, customize user-agent header
97ef176
Faolan C-P Merge pull request #12 from fruehwir/master
Fix for item.getChildren issue closes #11
24397b9
Dec 11, 2013
Tom Elliott add debug printout of response headers 7319b82
Tom Elliott Merge branch 'master' of github.com:paregorios/libZotero
getting everything up to date
0442725
4  lib/py/libZotero/item.py
@@ -5,7 +5,7 @@
5 5
 from copy import deepcopy
6 6
 from entry import *
7 7
 from zotero import responseIsError
8  
-
  8
+import zotero
9 9
 
10 10
 class Item(Entry):
11 11
     fieldMap = {
@@ -471,7 +471,7 @@ def save(self):
471 471
 
472 472
     def getChildren(self):
473 473
         #short circuit if has item has no children
474  
-        if self.numChildren == 0 or self.parentItemKey != false:
  474
+        if self.numChildren == 0 or self.parentItemKey != False:
475 475
             return []
476 476
 
477 477
         config = {'target': 'children', 'libraryType': self.owningLibrary.libraryType, 'libraryID': self.owningLibrary.libraryID, 'itemKey': self.itemKey, 'content': 'json'}
2  lib/py/libZotero/items.py
@@ -49,7 +49,7 @@ def addItem(self, item):
49 49
     def addItemsFromFeed(self, feed):
50 50
         addedItems = []
51 51
         for entry in feed.entries:
52  
-            item = Item(entry)
  52
+            item = Item(entry,self.owningLibrary)
53 53
             self.addItem(item)
54 54
             addedItems.append(item)
55 55
         return addedItems

No commit comments for this range

Something went wrong with that request. Please try again.