[Zope] newbie question - variables?

AM list_subscriber@neurobs.com
Tue, 04 Feb 2003 08:01:21 -0800


page 2 if viewed in both cases should give a key error because var1 or 
var2 are not in its namespace. but both the approaches should work when 
viewing page1 ( I just tested that ).

Could you please provide the error traceback, which should be on the 
page if you are running 2.5.x or in the error_log if you are running 2.6

AM

jonatan wrote:

>i have two functions: page1 and page2
>
>page1 contains:
>
><dtml-call expr="REQUEST.set('var1','do not work')">
><dtml-var page2>
>
>
>
>page2:
>
><dtml-var REQUEST>
><dtml-var var1>
>
>
>this makes a KeyError for both ....
>
>and if i say 
><dtml-var expr="page2(var2='hey there')">
>
>and in page2:
>
><dtml-var var2>
>
>then this works ...
>
>how's all this? how can i access the caller's namespace?
>
>
>thanks for the help,
>
>
>jonatan
>
>
>_______________________________________________
>Zope maillist  -  Zope@zope.org
>http://mail.zope.org/mailman/listinfo/zope
>**   No cross posts or HTML encoding!  **
>(Related lists - 
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
>
>
>  
>

-- 
==================================================================
 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  
==================================================================