[Zope] eval in PyScript

Aseem Mohanty aseem@neurobehavioralsystems.com
Mon, 17 Jun 2002 03:38:28 -0700


I cant seem to be able to call eval() from my script... Do I have to do 
something special to make it happen?

The error:

Error Type: NameError
Error Value: global name 'eval' is not defined

the script:

req=container.REQUEST
if req.has_key(field_name):
    val = eval('req.'+field_name)
    if val != None: return val
return ''



TIA
AM

-- 
==================================================================
 Aseem Mohanty							   
 Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 
 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231		  	
==================================================================								  	
 "I saw `cout' being shifted "Hello world" times to the left and  
  stopped right there!!"                        -- Steve Gonedes  
==================================================================