class RemoveRunAction(webapp.RequestHandler):'''The handler used to remove a Run from the system'''def get(self):key = self.request.get('key')run = Run.get(key)run.delete()ClearRunCache()self.redirect('/')
Like I said, not a lot of code! Basically get the key from the request, find the run, delete the run, and clear the memcache. The call I used to clear the cache is memcache.delete which clears the run cache for this one runner only. It doesn't reset the entire caching system. All the code is updated on github, the links on the left point you to my branch and to the application. I copy/pasted the code above from github, just noticed it looks a lot better than the copy/paste from eclipse.
No comments:
Post a Comment