[Karrigell-main] Include() behaviour
Brought to you by:
quentel
From: Pierre Q. <que...@wa...> - 2003-05-28 20:16:45
|
As Brian noticed, the last version of Karrigell, with a separate = Template module, has changed the behaviour of Include() : a variable = defined inside a script which has an Include(otherScript) is no more = available in otherScript This was not intentional, and is probably due to the use of copy.copy = inside the "render" method in the "Script" class of Template : if I = replace ns =3D copy.copy(globals()) by ns =3D globals() it works like before Now which behaviour do users find the best ? Having the whole namespace = seems more convenient, but are there unwanted side effects and should we = impose to explicitely pass parameters with Include(otherScript, **args) = ? Pierre |