def valid_processor_options(processors=None):
 if (processors is None):
  processors = [dynamic_import(p) for p in (settings.THUMBNAIL_PROCESSORS + settings.THUMBNAIL_SOURCE_GENERATORS)]
 valid_options = set(['size', 'quality', 'subsampling'])
 for processor in processors:
  args = inspect.getargspec(processor)[0]
  valid_options.update(args[1:])
 return list(valid_options)

def valid_processor_options ( processors = None ) : if ( processors is None ) : processors = [ dynamic_import ( p ) for p in ( settings . THUMBNAIL_PROCESSORS + settings . THUMBNAIL_SOURCE_GENERATORS ) ] valid_options = set ( [ 'size' , 'quality' , 'subsampling' ] ) for processor in processors : args = inspect . getargspec ( processor ) [ 0 ] valid_options . update ( args [ 1 : ] ) return list ( valid_options )
return a list of unique valid options for a list of image processors .