summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/modules/edit/palettes.py
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2011-05-23 06:42:22 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2011-05-23 06:42:22 +0000
commit652608411f9d8a0edf95ceac9726580dcc71b17e (patch)
tree5796ca0697932a280e6024dcac764c6b44faeae8 /sca-cpp/trunk/modules/edit/palettes.py
parenta2b039a0621a257856c86af0ff715ff108a7e813 (diff)
Refactor app data model part 1, add a template for new apps and support for saving account info.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1126333 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/modules/edit/palettes.py')
-rw-r--r--sca-cpp/trunk/modules/edit/palettes.py6
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):