Logo Search packages:      
Sourcecode: zope-extfile version File versions

def zope-extfile-1.4.2::ExtImage::ExtImage::manage_upload (   self,
  file = '',
  content_type = '',
  is_preview = 0,
  create_prev = NO_PREVIEW,
  maxx = '',
  maxy = '',
  ratio = 0,
  REQUEST = None 
)

Upload image from file handle or string buffer 

Definition at line 318 of file ExtImage.py.

                                   :
        """ Upload image from file handle or string buffer """
        if self.wl_isLocked():
            raise ResourceLockedError, "File is locked via WebDAV"

        if type(file) == types.StringType:
            temp_file = TemporaryFile()
            temp_file.write(file)
            temp_file.seek(0)
        return self.manage_file_upload(temp_file, content_type, is_preview,
                                       create_prev, maxx, maxy, ratio, REQUEST)

    security.declareProtected(ChangePermission, 'manage_file_upload')
    def manage_file_upload(self, file='', content_type='', is_preview=0, 


Generated by  Doxygen 1.6.0   Back to index