Commit 030f5e0f authored by Evan Simpson's avatar Evan Simpson

Copy recursion level into namespace

parent c7fd5b01
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
# #
############################################################################## ##############################################################################
__version__='$Revision: 1.4 $'[11:-2] __version__='$Revision: 1.5 $'[11:-2]
import Globals import Globals
from Globals import Persistent, HTMLFile, package_home from Globals import Persistent, HTMLFile, package_home
...@@ -329,6 +329,7 @@ class Bindings (Persistent): ...@@ -329,6 +329,7 @@ class Bindings (Persistent):
if caller_namespace is not None: if caller_namespace is not None:
# Include the caller's namespace. # Include the caller's namespace.
my_namespace._push(caller_namespace) my_namespace._push(caller_namespace)
my_namespace.level = caller_namespace.level
return my_namespace return my_namespace
def __call__(self, *args, **kw): def __call__(self, *args, **kw):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment