From 4951c1b04bf66f81cf648b76af3795245d56381a Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Mon, 11 Feb 2013 05:48:20 +0000 Subject: Improvements to the app management UI. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1444660 13f79535-47bb-0310-9956-ffa450edef68 --- sca-cpp/trunk/hosting/server/pages.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'sca-cpp/trunk/hosting/server/pages.py') 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) -- cgit v1.2.3