commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

r5831 - trunk/gnue-common/src/logic/adapters


From: btami
Subject: r5831 - trunk/gnue-common/src/logic/adapters
Date: Tue, 25 May 2004 12:36:19 -0500 (CDT)

Author: btami
Date: 2004-05-25 12:36:18 -0500 (Tue, 25 May 2004)
New Revision: 5831

Modified:
   trunk/gnue-common/src/logic/adapters/python.py
Log:
added "in globals(), locals()" to exec, so compile not complains when builtin 
functions used in triggers code

Modified: trunk/gnue-common/src/logic/adapters/python.py
===================================================================
--- trunk/gnue-common/src/logic/adapters/python.py      2004-05-25 17:33:03 UTC 
(rev 5830)
+++ trunk/gnue-common/src/logic/adapters/python.py      2004-05-25 17:36:18 UTC 
(rev 5831)
@@ -165,7 +165,7 @@
 
       # add the namespace transformation loop
       revisedCode += "  for __add in __namespace.keys ():\n"
-      revisedCode += "    exec '%s = __namespace [\"%s\"]' % (__add, __add)\n"
+      revisedCode += "    exec '%s = __namespace [\"%s\"]' % (__add, __add) in 
globals(), locals()\n"
       revisedCode += "  del __add, __namespace\n\n"
 
       # add the original code





reply via email to

[Prev in Thread] Current Thread [Next in Thread]