[Zope] SiteAccess/TinyTablePlus perplexed - help.

Trevor Toenjes zope@toenjes.com
Wed, 21 Nov 2001 19:29:39 -0500


I am trying to write some data to a TinyTable via an AccessRule.
I am stuck and have tried the obvious "security" overrides on the table.

I get the following DTML errors-but cant identify the security problem.
Unauthorized >>You are not authorized to access html_impression

I am using Zope2.4.0. The code is using Embedded Session Values.
The call works fine without the AccessRule.

<dtml-let stack="REQUEST['TraversalRequestNameStack']">
Don't intercept management requests
<dtml-unless "stack[0][:6]=='manage'">
  Is the next path segment a positive integer?
  <dtml-if "_.int(stack[-1])>0">
    Save it and remove it from the path
    <dtml-call "REQUEST.set('SessionID', stack.pop())">
    Add it back into the logical path
    <dtml-call "REQUEST.setVirtualRoot(REQUEST.steps+[SessionID])">

<dtml-call
"html_impression.setRow(sessID='sessionID2',timestamp='time',IP=_.render(REM
OTE_ADDR))">

  <dtml-else>
    <dtml-raise type="Invalid">Invalid Session ID!</dtml-raise>
  </dtml-if>
</dtml-unless>
</dtml-let>

TIA4help,
Trevor