def verify(self): if not self['name']: raise Stink("images need a name") if not 'file' in self.request.files: raise Stink("you have to upload a file") files.verify(self.request.files['file'][0]['body'], self.reqs)
def verify(self): if not 'file' in self.request.files: raise Stink("you must upload an image") files.verify(self.request.files['file'][0]['body'], self.reqs)