Example #1
0
 def get_office_converted_page(request, static_filename, file_id):
     office_out_dir = OFFICE_HTML_DIR
     filepath = os.path.join(file_id, static_filename)
     if static_filename.endswith('.pdf'):
         office_out_dir = OFFICE_PDF_DIR
         filepath = static_filename
     return django_static_serve(request,
                                filepath,
                                document_root=office_out_dir)
Example #2
0
 def get_office_converted_page(request, repo_id, commit_id, path,
                               static_filename, file_id):
     return django_static_serve(request,
                                os.path.join(file_id, static_filename),
                                document_root=OFFICE_HTML_DIR)
Example #3
0
 def get_office_converted_page(request, path, file_id):
     return django_static_serve(request,
                                path,
                                document_root=OFFICE_HTML_DIR)
Example #4
0
 def get_office_converted_page(request, repo_id, commit_id, path, static_filename, file_id):
     return django_static_serve(request,
                                os.path.join(file_id, static_filename),
                                document_root=OFFICE_HTML_DIR)
Example #5
0
 def get_office_converted_page(request, path, file_id):
     return django_static_serve(request, path, document_root=OFFICE_HTML_DIR)