Commit f9539d5e authored by Guillaume Michon's avatar Guillaume Michon

Added ImmobilisationValidityError, ImmobilisationCalculationError, and WorkflowException


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6058 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cfe66849
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
# from Products.ERP5.Errors import DeferredCatalogError # from Products.ERP5.Errors import DeferredCatalogError
from Products.PythonScripts.Utility import allow_class from Products.PythonScripts.Utility import allow_class
from Products.CMFCore.WorkflowCore import WorkflowException
class DeferredCatalogError(Exception): class DeferredCatalogError(Exception):
...@@ -13,4 +14,10 @@ class DeferredCatalogError(Exception): ...@@ -13,4 +14,10 @@ class DeferredCatalogError(Exception):
self.error_key = error_key self.error_key = error_key
self.field_id = context.getRelativeUrl() self.field_id = context.getRelativeUrl()
class ImmobilisationValidityError(Exception):pass
class ImmobilisationCalculationError(Exception):pass
allow_class(DeferredCatalogError) allow_class(DeferredCatalogError)
allow_class(ImmobilisationValidityError)
allow_class(ImmobilisationCalculationError)
allow_class(WorkflowException)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment