96 |
# format code |
# format code |
97 |
|
|
98 |
ccode=compile (code,'<string>','exec') |
ccode=compile (code,'<string>','exec') |
99 |
myfunc=new.function(ccode, {}, triggername) |
myfunc=new.function(ccode, {'session':self._session}, triggername) |
100 |
|
|
101 |
return myfunc |
return myfunc |
102 |
|
|
127 |
# format code |
# format code |
128 |
|
|
129 |
ccode=compile (code,'<string>','exec') |
ccode=compile (code,'<string>','exec') |
130 |
myfunc=new.function(ccode, {}, instance.get('name')) |
myfunc=new.function(ccode, {'session':self._session}, instance.get('name')) |
131 |
|
|
132 |
return myfunc |
return myfunc |
133 |
|
|