[Zope-dev] Authorization failure

Thomas Weiner weiner@tu-harburg.de
Tue, 14 Mar 2000 10:34:16 +0100


sander@innominate.de schrieb:

[...]
> 
> <dtml-comment>
>  <dtml-if "feldname == 'Freikonto'">
>      <dtml-call "REQUEST.set('freikonto', feldwert)">
>  </dtml-comment>
>  <dtml-if "feldname == 'Konto'">
>      <dtml-call "REQUEST.set('konto', feldwert)">
>  </dtml-if>

hmmm .. this shouldn't work, because Zope will try to find the ending
</dtml-if> for the first <dtml-if>, even if it's nested by a
<dtml-comment>.
 
> If I try to save these changes, Zope complains, that I'm not
> authorized although I'm superuser and have all rights.

I get the same from time to time if I try to save somehow buggy dtml.
Repairing the code - as you did - solved it every time.

hth,
Thomas