Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)