diff options
Diffstat (limited to '')
-rw-r--r-- | sca-cpp/trunk/modules/edit/palettes.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sca-cpp/trunk/modules/edit/palettes.py b/sca-cpp/trunk/modules/edit/palettes.py index abe28a3364..5cb303e053 100644 --- a/sca-cpp/trunk/modules/edit/palettes.py +++ b/sca-cpp/trunk/modules/edit/palettes.py @@ -22,6 +22,12 @@ from util import * def paletteid(id): return ("'" + car(id), "'palette.composite") +# Put a palette into the palettes db +def put(id, palette, cache): + comp = cdr(cadddr(car(palette))) + cache.put(paletteid(id), comp) + return True + # Get a palette from the palettes db def get(id, cache): if isNil(id): |