diff options
Diffstat (limited to 'sca-cpp/trunk/hosting/server/pages.py')
-rw-r--r-- | sca-cpp/trunk/hosting/server/pages.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/sca-cpp/trunk/hosting/server/pages.py b/sca-cpp/trunk/hosting/server/pages.py index 3d353279ba..cb6a33621a 100644 --- a/sca-cpp/trunk/hosting/server/pages.py +++ b/sca-cpp/trunk/hosting/server/pages.py @@ -43,7 +43,12 @@ def put(id, page, user, cache, apps): # Update the page in the page db pageentry = mkentry(title(app), car(id), user.get(()), now(), content(page)) debug('pages.py::put::pageentry', pageentry) - return cache.put(pageid(id), pageentry) + rc = cache.put(pageid(id), pageentry) + if rc == False: + return False + + # Update the app's updated date + return apps.put(id, app) # Get a page from the page db def get(id, user, cache, apps): @@ -90,5 +95,10 @@ def delete(id, user, cache, apps): return False # Delete the page - return cache.delete(pageid(id)) + rc = cache.delete(pageid(id)) + if rc == False: + return False + + # Update the app's updated date + return apps.put(id, app) |