FSSession and external methods...
Hi all, Anyone got any experience with FSSession and external methods (actually a PythonMethod). I want to get the data out of an FSSession object using this construct-type <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. Anyone got a fixe for this? I need to do some heavy processing with the contents of the FSSession object so I can't *really* use DTML. TIA tone. ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project http://nle.ncl.ac.uk/ The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2
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
At 9:04 am -0500 21/3/00, Pavlos Christoforou wrote:
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
Triffic Pavlos!, Thanks a lot for that.. tone. ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project http://nle.ncl.ac.uk/ The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2
participants (2)
-
Pavlos Christoforou -
Tony McDonald