[Zope] argh - CoreSessionTracking

Harry Wilkinson harryw@nipltd.com
Mon, 10 Sep 2001 10:37:10 +0100


Hi all :)

I'm having some problems with CoreSessionTracking.  The errors are
occurring on some pretty simple DTML code and they seem to be caused by
a failure to find the getSessionData() method :S

Here's the code that's getting an error:

<dtml-call "session.getSessionData().set('Type','Professional')">

I've tried splitting this up into three seperate calls like so:

<dtml-let ses="session">
  <dtml-let sesdata="ses.getSessionData()">
    <dtml-call "sesdata.set('Type', 'Professional')">
  </dtml-let>
</dtml-let>

The error occurs on the call to getSessionData() and I can't work out
why.  The same code works in a seperate area of my site, using a
different session data manager (with a different name) and a different
session ID manager.

Is this likely to be an acquisition problem?  The object 'session' is in
the folder directly above this folder.  I have checked and double
checked the security settings of various objects but I'm not totally
certain they're correct.  I get an error when I try to change the
security settings of the 'access session data' permission in the session
data manager.  Is that normal?

I hope somebody can shed some light on this; thanks for your time! :)

Oh yes, and here's the traceback:

<!--
Traceback (innermost last):
  File /usr/local/zope/2.4.0_base/lib/python/ZPublisher/Publish.py, line
223, in publish_module
  File /usr/local/zope/2.4.0_base/lib/python/ZPublisher/Publish.py, line
187, in publish
  File /usr/local/zope/2.4.0_base/lib/python/Zope/__init__.py, line 226,
in zpublisher_exception_hook
    (Object: LockableItem)
  File /usr/local/zope/2.4.0_base/lib/python/ZPublisher/Publish.py, line
171, in publish
  File /usr/local/zope/2.4.0_base/lib/python/ZPublisher/mapply.py, line
160, in mapply
    (Object: index.html)
  File /usr/local/zope/2.4.0_base/lib/python/ZPublisher/Publish.py, line
112, in call_object
    (Object: index.html)
  File /usr/local/zope/2.4.0_base/lib/python/OFS/DTMLDocument.py, line
199, in __call__
    (Object: index.html)
  File
/usr/local/zope/2.4.0_base/lib/python/DocumentTemplate/DT_String.py,
line 544, in __call__
    (Object: index.html)
  File /usr/local/zope/2.4.0_base/lib/python/DocumentTemplate/DT_Let.py,
line 147, in render
    (Object: ses=&quot;session.getSessionData()&quot;)
  File
/usr/local/zope/2.4.0_base/lib/python/DocumentTemplate/DT_Util.py, line
230, in eval
    (Object: session.getSessionData())
    (Info: session)
  File &lt;string&gt;, line 2, in f
    (Object: guarded_getattr)
  File
/usr/local/hosting/accounts/hosting/Products/CoreSessionTracking/SessionDataManager.py,
line 227, in getSessionData
    (Object: session)
  File
/usr/local/hosting/accounts/hosting/Products/CoreSessionTracking/SessionDataManager.py,
line 254, in getToken
    (Object: session)
  File
/usr/local/hosting/accounts/hosting/Products/CoreSessionTracking/SessionIdManager.py,
line 240, in getToken
    (Object: session_id_mgr)
TypeError: (see above)

-->

Harry