[Zope] SiteAccess problems in Zope 2.2.0a

Alexander Limi alexander@limi.net
Thu, 18 May 2000 12:37:17 +0200


> Hi Alexander,
>
> What does your access rule look like?

The error message I get is this:

Error Type: TypeError
Error Value: unexpected keyword argument: validated_hook

And the access rule looks like this:

<dtml-call expr="REQUEST.setURL(base='http://mp3.no')">
<dtml-let path="REQUEST.path">
<dtml-if path>
<dtml-comment>  There is a path </dtml-comment>
  <dtml-if expr="path[-1]=='Z'">
<dtml-comment>    '/Z/...' explicitly forbids redirection to 'artists'
</dtml-comment>
    <dtml-call expr="path.pop()">
    <dtml-call expr="REQUEST.setURL(path='Z')">
  <dtml-elif expr="path[-1] in objectIds()">
<dtml-comment>    Don't redirect existing objects </dtml-comment>
  <dtml-else>
<dtml-comment>    Everything else goes to 'artists' </dtml-comment>
    <dtml-call expr="path.append('artists')">
    <dtml-call expr="REQUEST.set('SiteRootPATH', '/')">
  </dtml-if>
</dtml-if>
</dtml-let>

Regards,


Alexander.