[Zope] desperate for some help here
Aseem Mohanty
aseem@neurobehavioralsystems.com
Wed, 05 Jun 2002 03:57:04 -0700
Hi all,
I have a method in acl_users called logout (which calls a py function in
my product) and try to use the method from a doc that could be anywhere
in the site. The error I get is:
Error Type: Unauthorized
Error Value: You are not allowed to access user_logout in this context
The method logout :
<dtml-call "user_logout">
<dtml-call "RESPONSE.redirect('/test_folder/logged_out')">
The call from another doc (could be anywhere)
<a href="<dtml-var "acl_users.log_out.absolute_url()">"
class="link">LOGOUT</a>
I found some links on the zope site dealing with context switches but
they werent very helpful. Primarily they said about being careful as to
what object I put stuff in, I tried making the logout method a DTML doc
with the same result.
How do I get around this problem?
TIA
AM
--
==================================================================
Aseem Mohanty
Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706
(R) 510 7696011 (M) 510 3014871 (O) 510 5279231
==================================================================
"I saw `cout' being shifted "Hello world" times to the left and
stopped right there!!" -- Steve Gonedes
==================================================================