Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Adapt ZoteroTableWidget to new create_distant_reference()
Browse files Browse the repository at this point in the history
  • Loading branch information
pafonta committed Jan 26, 2018
1 parent 2548670 commit 0f11f62
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions neurocurator/zotero_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,7 @@ def add_reference(self):
# print("REFERENCE DATA: " + repr(reference_data))
# /FIXME DEBUG.
# TODO Implement an offline mode. Catch PyZoteroError.
reference_key = self._zotero.create_distant_reference(reference_data)
# TODO Implement an offline mode. Catch PyZoteroError.
reference = self._zotero.get_reference(reference_key)
reference = self._zotero.create_distant_reference(reference_data)
source_index = self.view.model().sourceModel().add_reference(reference)
proxy_index = self.view.model().mapFromSource(source_index)
self.view.selectRow(proxy_index.row())
Expand Down

0 comments on commit 0f11f62

Please sign in to comment.