summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2014-04-04 19:36:00 +0100
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2014-04-04 19:36:00 +0100
commit13c51d30ff1818d6b0776222e6b0d275b6ceab25 (patch)
tree3ac98a3d65a6f283311c799ba60d364d1200d8a6
parentd4e4827a56f35ee53e1771ef3acfb82935428bbf (diff)
downloadmorph-cache-server-13c51d30ff1818d6b0776222e6b0d275b6ceab25.tar.gz
down to minimum
-rwxr-xr-xmorph-cache-server27
1 files changed, 15 insertions, 12 deletions
diff --git a/morph-cache-server b/morph-cache-server
index c0c23f5..2891e19 100755
--- a/morph-cache-server
+++ b/morph-cache-server
@@ -306,20 +306,23 @@ class MorphCacheServer(cliapp.Application):
@app.post('/artifacts')
def post_artifacts():
- artifacts = request.forms.get('artifacts').split(',')
- results = {}
+ #artifacts = request.forms.get('artifacts').split(',')
+ artifacts = requests.body.read()
+ print artifacts
- logging.debug('Received a POST request for /artifacts')
+ #results = {}
- for artifact in artifacts:
- logging.debug('Checking whether artifact %s is in the cache'
- % artifact)
- basename = self._unescape_parameter(artifact)
- filename = os.path.join(self.settings['artifact-dir'], basename)
-
- results[artifact] = os.path.exists(filename)
- logging.debug('%s is%s in the cache' %
- (artifact, '' if result[artifact] else "n't"))
+ #logging.debug('Received a POST request for /artifacts')
+
+ #for artifact in artifacts:
+ # logging.debug('Checking whether artifact %s is in the cache'
+ # % artifact)
+ # basename = self._unescape_parameter(artifact)
+ # filename = os.path.join(self.settings['artifact-dir'], basename)
+
+ # results[artifact] = os.path.exists(filename)
+ # logging.debug('%s is%s in the cache' %
+ # (artifact, '' if result[artifact] else "n't"))
return results