[Zope] FSSession and external methods...

Pavlos Christoforou pavlos@gaaros.com
Tue, 21 Mar 2000 09:04:14 -0500 (EST)


On Tue, 21 Mar 2000, Tony McDonald wrote:

> 
> <argument>self</argument>
> 
> FS = self.FSSession
> out = ""
> for k,v in FS.items():
>      out = out + "K:%s, V:%s<br>" % (k,v)
> return out
> 
> and get this;
> 
> <!--
>   Error type:  AttributeError
>   Error value: _v_data
>   -->
> 
> Looking at FSSession.py, _v_data is there as part of the FSSession class;
>      def items(self): return self._v_data.items()
> but it's not getting through to the method.

You need to call FSSession before you can use it, as in DTML otherwise the
data will not be loaded into _v_data. I have just tried the following and
it works:


FS=self.FSSession
FS()
out=""
for k,v in FS.items():
   out = out + "K:%s, V:%s<br>" % (k,v)
return out


Pavlos