<s> from pyramid . view import view_config <EOL> from kotti . interfaces import IFile <EOL> @ view_config ( name = '<STR_LIT>' , context = IFile , permission = '<STR_LIT>' , <EOL> renderer = '<STR_LIT>' ) <EOL> def view ( context , request ) : <EOL> return { } <EOL> @ view_config ( name = '<STR_LIT>' , context = IFile , permission = '<STR_LIT>' ) <EOL> def inline_view ( context , request ) : <EOL> return request . uploaded_file_response ( context . data ) <EOL> @ view_config ( name = '<STR_LIT>' , context = IFile , permission = '<STR_LIT>' ) <EOL> def attachment_view ( context , request ) : <EOL> return request . uploaded_file_response ( context . data , '<STR_LIT>' ) <EOL> def includeme ( config ) : <EOL> """<STR_LIT>""" <EOL> config . scan ( __name__ ) <EOL> from zope . deprecation . deprecation import deprecated <EOL> from kotti . filedepot import StoredFileResponse <EOL> class UploadedFileResponse ( StoredFileResponse ) : <EOL> def __init__ ( self , data , request , disposition = '<STR_LIT>' , <EOL> cache_max_age = None , content_type = None , <EOL> content_encoding = None ) : <EOL> super ( UploadedFileResponse , self ) . __init__ ( <EOL> data . file , request , disposition = disposition , <EOL> cache_max_age = cache_max_age , content_type = content_type , <EOL> content_encoding = content_encoding ) <EOL> deprecated ( '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' ) </s>
