From d7069b5a2e7859ab14c5a909d5e5fc6bc84b80cb Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Thu, 3 Jan 2013 07:41:53 +0000 Subject: Improve app hosting management app, restructure UI and refactor REST services and data model to use an SQL database. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1428193 13f79535-47bb-0310-9956-ffa450edef68 --- sca-cpp/trunk/hosting/server/test/cache.py | 4 ++++ sca-cpp/trunk/hosting/server/test/reference.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'sca-cpp/trunk/hosting/server/test') diff --git a/sca-cpp/trunk/hosting/server/test/cache.py b/sca-cpp/trunk/hosting/server/test/cache.py index 98fa174c00..54462ab6ff 100644 --- a/sca-cpp/trunk/hosting/server/test/cache.py +++ b/sca-cpp/trunk/hosting/server/test/cache.py @@ -31,6 +31,10 @@ class cache: self.values[id] = value return True + def patch(self, id, value): + self.values[id] = value + return True + def post(self, id): return self.put(id) diff --git a/sca-cpp/trunk/hosting/server/test/reference.py b/sca-cpp/trunk/hosting/server/test/reference.py index fe4a66a087..df422b292c 100644 --- a/sca-cpp/trunk/hosting/server/test/reference.py +++ b/sca-cpp/trunk/hosting/server/test/reference.py @@ -26,7 +26,7 @@ class reference: return self.l(*args) def __getattr__(self, name): - if name == "get" or name == "put": + if name == 'get' or name == 'put' or name == 'patch' or name == 'post' or name == 'delete': return self raise AttributeError() -- cgit v1.2.3