[Zope] CoreSessionTracking problem with <dtml-return>

Aseem Mohanty aseem@neurobehavioralsystems.com
Fri, 14 Jun 2002 00:16:40 -0700


Hi all,

I have the following peice of DTML code :

<dtml-let error_list="forms.validate_core_user_form">
 <dtml-if "error_list != []">
  <dtml-let data="session_data_mgr.getSessionData()">
    <dtml-call "data.set('error_list',error_list)">
    <dtml-var error_list>
  </dtml-let>
 </dtml-if>
</dtml-let>

for which I get the following error:

Error Type: InvalidObjectReference
Error Value: Attempt to store an object from a foreign database connection

The function "validate_core_user_form" basically sets up a list:

<dtml-let error_list="[]">

and populates it. and the return it with : <dtml-return error_list>

I had to that because it seems session variables don't survive folder 
jumps (set in one / access in another and poof they disappear). Maybe a 
new session object created for a folder jump (I have to look into that)

the <dtml-var error_list> faithfully prints out the right results.

So what am I doing wrong here...???

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