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

Document how to edit level, learning activity, tags and category with ricecooker #418

Open
lsolesen opened this issue May 2, 2023 · 2 comments

Comments

@lsolesen
Copy link
Contributor

lsolesen commented May 2, 2023

  • ricecooker version:
  • Python version: 3.8.10
  • Operating System: Ubuntu

Description

Make it possible to edit level, learning activity, tags and category with ricecooker.

chrome_G9BIV7nYbW

Also Previous step, Next step, author, aggregator and Provider.

chrome_bZgp2gFDwk

What I Did

I made a script to import content into Kolibri studio, but was not able to find any documentation on how to set the values for: level, learning activity, tags and category.

@rtibbles
Copy link
Member

rtibbles commented May 2, 2023

Hi @lsolesen - this is possible, but you are right that it is poorly documented. I will tweak your issue title to reflect this documentation need!

@rtibbles rtibbles changed the title Make it possible to edit level, learning activity, tags and category with ricecooker Document how to edit level, learning activity, tags and category with ricecooker May 2, 2023
@rtibbles
Copy link
Member

rtibbles commented May 2, 2023

These kwargs to node classes allow setting this:

        tags=None,
        grade_levels=None,
        resource_types=None,
        learning_activities=None,
        accessibility_labels=None,
        categories=None,
        learner_needs=None,

tags accepts a list of strings to apply as tags.

The other values accept a list of values from le_utils - with the relevant constants here: https://github.com/learningequality/le-utils/tree/main/le_utils/constants/labels

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants