예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
 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)
예제 #4
0
 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)