|
@@ -13,6 +13,7 @@
|
13
|
13
|
import re
|
14
|
14
|
|
15
|
15
|
import leobject
|
|
16
|
+from .lefactory import LeFactory
|
16
|
17
|
import EditorialModel
|
17
|
18
|
from EditorialModel.types import EmType
|
18
|
19
|
|
|
@@ -335,14 +336,14 @@ class _LeObject(object):
|
335
|
336
|
|
336
|
337
|
if not(leclass is None):
|
337
|
338
|
if isinstance(leclass, str):
|
338
|
|
- leclass = leobject.lefactory.LeFactory.leobj_from_name(leclass)
|
|
339
|
+ leclass = LeFactory.leobj_from_name(leclass)
|
339
|
340
|
|
340
|
341
|
if not isinstance(leclass, type) or not (leobject.leclass.LeClass in leclass.__bases__) or leclass.__class__ == leobject.leclass.LeClass:
|
341
|
342
|
raise ValueError("None | str | LeType child class excpected, but got : '%s' %s"%(leclass,type(leclass)))
|
342
|
343
|
|
343
|
344
|
if not(letype is None):
|
344
|
345
|
if isinstance(letype, str):
|
345
|
|
- letype = leobject.lefactory.LeFactory.leobj_from_name(letype)
|
|
346
|
+ letype = LeFactory.leobj_from_name(letype)
|
346
|
347
|
|
347
|
348
|
if not isinstance(letype, type) or not leobject.letype.LeType in letype.__bases__ or letype.__class__ == leobject.letype.LeType:
|
348
|
349
|
raise ValueError("None | str | LeType child class excpected, but got : %s"%type(letype))
|