diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2013-02-11 05:48:20 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2013-02-11 05:48:20 +0000 |
commit | 4951c1b04bf66f81cf648b76af3795245d56381a (patch) | |
tree | 7e6182a46d4d246716438cdb9ecd4480ef3d4b65 /sca-cpp/trunk/hosting/server/pages.py | |
parent | 5c0eab60028407c84e2fee6a4fa1fbc03716d1d2 (diff) |
Improvements to the app management UI.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1444660 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-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) |