Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(7)  |  Call(7)  |  Derive(0)  |  Import(0)

src/j/a/JaikuEngine-HEAD/common/views.py   JaikuEngine(Download)
      validate.avatar_photo_size(img)
 
      img_url = api.avatar_upload(request.user,
                                  nick,
                                  img.read())

src/j/a/jaikuenginepatch-HEAD/common/views.py   jaikuenginepatch(Download)
      validate.avatar_photo_size(img)
 
      img_url = api.avatar_upload(request.user,
                                  nick,
                                  img.read())

src/c/o/CollabQ-HEAD/common/views.py   CollabQ(Download)
      validate.avatar_photo_size(img)
 
      img_url = api.avatar_upload(request.user,
                                  nick,
                                  img.read())

src/j/a/JaikuEngine-HEAD/common/test/api.py   JaikuEngine(Download)
  def testResize(self):
    avatar_base_path = api.avatar_upload(self.popular,
                                         self.popular_nick,
                                         self.avatar_file_content)
    all_sizes = {'original': (320, 320)} # original dimension
    def _upload_invalid_image():
      api.avatar_upload(self.popular,
                        self.popular_nick,
                        'not an image')
    self.assertRaises(exception.ApiException, _upload_invalid_image)

src/j/a/jaikuenginepatch-HEAD/common/test/api.py   jaikuenginepatch(Download)
  def testResize(self):
    avatar_base_path = api.avatar_upload(self.popular,
                                         self.popular_nick,
                                         self.avatar_file_content)
    all_sizes = {'original': (320, 320)} # original dimension
    def _upload_invalid_image():
      api.avatar_upload(self.popular,
                        self.popular_nick,
                        'not an image')
    self.assertRaises(exception.ApiException, _upload_invalid_image)