예제 #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)
예제 #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)
예제 #3
0
파일: __init__.py 프로젝트: rabits/seahub
 def get_office_converted_page(request, path, file_id):
     return django_static_serve(request,
                                path,
                                document_root=OFFICE_HTML_DIR)
예제 #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)
예제 #5
0
파일: __init__.py 프로젝트: biddyweb/seahub
 def get_office_converted_page(request, path, file_id):
     return django_static_serve(request, path, document_root=OFFICE_HTML_DIR)