Update the JavaScript dependency installation code to handle scoped packages. The code is also updated to use pathlib's Path. Move the JavaScript dependency installation to its own app named dependencies. Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
45 lines
1.0 KiB
Python
45 lines
1.0 KiB
Python
from __future__ import unicode_literals
|
|
|
|
|
|
class BaseCommonException(Exception):
|
|
"""
|
|
Base exception for the common app
|
|
"""
|
|
pass
|
|
|
|
|
|
class ActionError(BaseCommonException):
|
|
"""
|
|
Raise by the MultiActionConfirmView to announce when the object action
|
|
failed for one or more items. This exception doesn't stop the iteration,
|
|
it is used to announce that one item in the queryset failed to process.
|
|
"""
|
|
|
|
|
|
class CompressionFileError(BaseCommonException):
|
|
"""
|
|
Base exception for file decompression class
|
|
"""
|
|
pass
|
|
|
|
|
|
class NoMIMETypeMatch(CompressionFileError):
|
|
"""
|
|
There is no decompressor registered for the specified MIME type
|
|
"""
|
|
pass
|
|
|
|
|
|
class NotLatestVersion(BaseCommonException):
|
|
"""
|
|
The installed version is not the latest available version
|
|
"""
|
|
def __init__(self, upstream_version):
|
|
self.upstream_version = upstream_version
|
|
|
|
|
|
class UnknownLatestVersion(BaseCommonException):
|
|
"""
|
|
It is not possible to determine what is the latest upstream version.
|
|
"""
|