summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/modules/edit/pages.py
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2011-01-18 09:07:34 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2011-01-18 09:07:34 +0000
commit98a6c203285b86758f333b8dcff69f78e53e7f74 (patch)
tree84d966ffd9b7bf8967dbcfbb9d0940693c541151 /sca-cpp/trunk/modules/edit/pages.py
parentcff1c7648d6041e15cf53741b742cb6d01427419 (diff)
Fix XML serialization issues with XHTML docs and add ability to save widgets.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1060250 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/modules/edit/pages.py')
-rw-r--r--sca-cpp/trunk/modules/edit/pages.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/sca-cpp/trunk/modules/edit/pages.py b/sca-cpp/trunk/modules/edit/pages.py
index 1e81a67332..e96e503730 100644
--- a/sca-cpp/trunk/modules/edit/pages.py
+++ b/sca-cpp/trunk/modules/edit/pages.py
@@ -18,6 +18,7 @@
# App pages collection implementation
import uuid
import sys
+from sys import stderr
from util import *
# Convert an id to an app id
@@ -27,12 +28,14 @@ def appid(id):
# Post a new app page to the apps db
def post(collection, app, cache):
id = appid((str(uuid.uuid1()),))
- cache.put((id,), app)
+ xhtml = caddr(app);
+ cache.put((id,), xhtml)
return id
# Put an app page into the apps db
def put(id, app, cache):
- cache.put(appid(id), app)
+ xhtml = caddr(app);
+ cache.put(appid(id), xhtml)
return True
# Get an app page from the apps db