diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2013-01-03 07:41:53 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2013-01-03 07:41:53 +0000 |
commit | d7069b5a2e7859ab14c5a909d5e5fc6bc84b80cb (patch) | |
tree | d8027520fb22c176f54e860c0d2ebd000b1c457f /sca-cpp/trunk/hosting/server/test | |
parent | 9e1b9e73145e00ea591bd1e0e9777625bad66dc9 (diff) |
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
Diffstat (limited to 'sca-cpp/trunk/hosting/server/test')
-rw-r--r-- | sca-cpp/trunk/hosting/server/test/cache.py | 4 | ||||
-rw-r--r-- | sca-cpp/trunk/hosting/server/test/reference.py | 2 |
2 files changed, 5 insertions, 1 deletions
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() |