|
@@ -1,5 +1,9 @@
|
1
|
1
|
#-*- coding: utf-8 -*-
|
2
|
2
|
|
|
3
|
+## @package lodel.editorial_model.exceptions
|
|
4
|
+# This module contains the specific exceptions related to the EditorialModel Management.
|
|
5
|
+
|
|
6
|
+
|
3
|
7
|
class EditorialModelError(Exception):
|
4
|
8
|
pass
|
5
|
9
|
|
|
@@ -7,7 +11,7 @@ class EditorialModelError(Exception):
|
7
|
11
|
def assert_edit():
|
8
|
12
|
try:
|
9
|
13
|
from lodel import Settings
|
10
|
|
- except ImportError: #Very dirty, but don't know how to fix the tests
|
|
14
|
+ except ImportError: # Very dirty, but don't know how to fix the tests
|
11
|
15
|
return
|
12
|
16
|
if not Settings.editorialmodel.editormode:
|
13
|
17
|
raise EditorialModelError("EM is readonly : editormode is OFF")
|