|
|
@@ -33,7 +33,7 @@ def render(path=None, http_status_code=None): |
|
|
|
data = render_page('404') |
|
|
|
http_status_code = 404 |
|
|
|
elif is_static_file(path): |
|
|
|
return get_static_file_reponse() |
|
|
|
return get_static_file_response() |
|
|
|
else: |
|
|
|
try: |
|
|
|
data = render_page_by_language(path) |
|
|
@@ -91,7 +91,7 @@ def is_static_file(path): |
|
|
|
|
|
|
|
return False |
|
|
|
|
|
|
|
def get_static_file_reponse(): |
|
|
|
def get_static_file_response(): |
|
|
|
try: |
|
|
|
f = open(frappe.flags.file_path, 'rb') |
|
|
|
except IOError: |
|
|
|