return in precedent state

This commit is contained in:
Roselyne Chotin 2012-08-16 17:17:21 +00:00
parent 1917f64d56
commit 33eca48c11
1 changed files with 9 additions and 9 deletions

View File

@ -1027,14 +1027,14 @@ class Model :
className = chaine.group(2)
# Roselyne : pour prendre en compte les modeles recursifs
import sys
#moduleClass = __import__ ( ficName, globals(), locals(), [className] )
#modeleClass = getattr ( moduleClass, className )
try :
modeleClass = getattr ( sys.modules['__main__'], className )
except AttributeError :
#import sys
moduleClass = __import__ ( ficName, globals(), locals(), [className] )
modeleClass = getattr ( moduleClass, className )
#try :
# modeleClass = getattr ( sys.modules['__main__'], className )
#except AttributeError :
# moduleClass = __import__ ( ficName, globals(), locals(), [className] )
# modeleClass = getattr ( moduleClass, className )
# fin Roselyne
instCell = modeleClass ( modele2, dict )