I'm getting an Unauthorised exception from my DTML Method, for anything which refers to this(). I find this a bit bemusing since this() just returns self. So, for example, I *can* do: <dtml-var getId> But I can't do: <dtml-var "this().getId()"> Any ideas? Cheers, seb -- [] j a m k i t seb bacon T: 020 7749 7218 F: 020 7739 8683 M: 07968 301 336 W: www.jamkit.com
* Dieter Maurer <dieter@handshake.de> [010717 23:04]:
seb bacon writes:
I'm getting an Unauthorised exception from my DTML Method, for anything which refers to this(). It does not do this for me...
Yes, I don't think it's a bug in Zope - it must be something quirky which I've done. I was hoping someone else might have seen this problem before and could help in the diagnosis. I should really have given some more details. this() works fine in every place but one in my Zope. It seems it may be something to so with virtual hosting. I'm using a VirtualHostMonster to manage things. If I don't use it, and I use this() to refer to the root of the site, things are fine. If I do, this() throws an Unauthorized. seb
seb bacon writes:
It seems it may be something to so with virtual hosting. I'm using a VirtualHostMonster to manage things. If I don't use it, and I use this() to refer to the root of the site, things are fine. If I do, this() throws an Unauthorized. You could try to install ZDebug.
It often gives very good diagnostics for Unauthorized Exceptions (in DTML objects). Dieter
participants (2)
-
Dieter Maurer -
seb bacon