Browse Source

Implement the translator for external EM

Yann Weber 8 years ago
parent
commit
f2394ba7e1
1 changed files with 13 additions and 0 deletions
  1. 13
    0
      lodel/editorial_model/translator/externaly_handled.py

+ 13
- 0
lodel/editorial_model/translator/externaly_handled.py View File

@@ -0,0 +1,13 @@
1
+from lodel.context import LodelContext
2
+
3
+LodelContext.expose_modules(globals(), {
4
+    'lodel.exceptions': ['LodelFatalError'],
5
+})
6
+
7
+def save(model, filename= None):
8
+    raise LodelFatalError('Not allowed to save an EM. EM are handled \
9
+externally')
10
+
11
+def load(filename):
12
+    raise LodelFatalError('Not allowed to load an EM : EM are handled \
13
+externally')

Loading…
Cancel
Save