ricecooker icon indicating copy to clipboard operation
ricecooker copied to clipboard

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

Open lsolesen opened this issue 2 years ago • 2 comments

  • 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.

lsolesen avatar May 02 '23 04:05 lsolesen

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 avatar May 02 '23 23:05 rtibbles

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

rtibbles avatar May 02 '23 23:05 rtibbles