HomePhabricator

templater: fix cbor() filter to recursively convert smartset to list

Authored by yuja.

Description

templater: fix cbor() filter to recursively convert smartset to list

The previous attempt, e3e44e6e7245 "templater: fix cbor() filter to accept
smartset", was incomplete since obj may be a collection containing a smartset.

This works around the problem by converting smartsets recursively. Another
option is to teach cborutil how to encode a smartset. That should be okay,
but I hesitated to add "import smartset" to cborutil.py as the cborutil is
pretty generic.

Details

Committed
yujaWed, Mar 25, 11:07 AM
Parents
rHG47c1226463a1: shelve: split up dounshelve() in unshelvecmd() and _dounshelve()
Branches
Unknown
Tags
Unknown