Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zotero.check_items(items) #62

Open
retorquere opened this issue Aug 12, 2019 · 5 comments
Open

Zotero.check_items(items) #62

retorquere opened this issue Aug 12, 2019 · 5 comments
Labels

Comments

@retorquere
Copy link

Check whether items to be created on the server contain only valid keys.
This method first creates a set of valid keys by calling item_fields(),
then compares the user-created dicts to it. If any keys in the user-created dicts are unknown,
a InvalidItemFields exception is raised, detailing the invalid fields.

@retorquere retorquere changed the title Zotero.check\_items(items) Zotero.check_items(items) Aug 12, 2019
@retorquere
Copy link
Author

I don't understand what this says. What are keys in this context?

@bjohas
Copy link

bjohas commented Aug 12, 2019

I think it means the keys in the key:value pairs for an item (e.g. title, publication, ...).

However, I am not sure why it would be possible to create items with invalid keys?

Does the existence of this method mean that items created through the API should be checked with check_items?

@bjohas bjohas added the prio-1 label Aug 12, 2019
@retorquere
Copy link
Author

I don't have a clue.

@bjohas
Copy link

bjohas commented Aug 12, 2019

Ok let me see if I can work it out.

@retorquere
Copy link
Author

Why though? If you don't have a live use-case behind this, what's the point?

@bjohas bjohas added prio-3 and removed prio-1 labels Aug 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants