Added get_error_icon_url() function to the mimetype app to be used for the new smarted document widget
This commit is contained in:
@@ -83,6 +83,9 @@ def get_error_icon_file_path():
|
|||||||
else:
|
else:
|
||||||
return os.path.join(settings.STATIC_ROOT, MIMETYPE_ICONS_DIRECTORY_NAME, ERROR_FILE_NAME)
|
return os.path.join(settings.STATIC_ROOT, MIMETYPE_ICONS_DIRECTORY_NAME, ERROR_FILE_NAME)
|
||||||
|
|
||||||
|
def get_error_icon_url():
|
||||||
|
return os.path.join(MIMETYPE_ICONS_DIRECTORY_NAME, ERROR_FILE_NAME)
|
||||||
|
|
||||||
|
|
||||||
def get_mimetype(file_description, filepath, mimetype_only=False):
|
def get_mimetype(file_description, filepath, mimetype_only=False):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user