diff options
Diffstat (limited to '')
-rw-r--r-- | sca-cpp/trunk/modules/edit/pages.py | 7 |
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 |