def supportsFile(self, fileName): #@UnusedVariable
     ext = getSafeString( getFileExtension(fileName) ).lower()
     # for image upload, store must support image types or all types
     if ext and ext in self.imgExtensions and self.getCapabilities().supportsImageFiles():
         return True
     # for video upload, store must support video file types or all types
     if ext and ext in self.movExtensions and self.getCapabilities().supportsVideoFiles():
         return True        
     #default case - must support anytype
     return self.getCapabilities().supportsAnyFile()
Beispiel #2
0
 def supportsFile(self, fileName):  #@UnusedVariable
     ext = getSafeString(getFileExtension(fileName)).lower()
     # for image upload, store must support image types or all types
     if ext and ext in self.imgExtensions and self.getCapabilities(
     ).supportsImageFiles():
         return True
     # for video upload, store must support video file types or all types
     if ext and ext in self.movExtensions and self.getCapabilities(
     ).supportsVideoFiles():
         return True
     #default case - must support anytype
     return self.getCapabilities().supportsAnyFile()
 def _isImageFile(self):
     (fileName, absFilePath, filePath, dateTime) = getFileMetaData(  self.getFile() ) #@UnusedVariable
     fileExt = getFileExtension(fileName)
     return fileExt and fileExt in self.imgExtensions
Beispiel #4
0
 def _isImageFile(self):
     (fileName, absFilePath, filePath,
      dateTime) = getFileMetaData(self.getFile())  #@UnusedVariable
     fileExt = getFileExtension(fileName)
     return fileExt and fileExt in self.imgExtensions