[Zope] How do I logout using DTML

2005-05-11 Thread Allen Huang
How do I logout current user using DTML
I used dtml-call expr="acl_users.logout(REQUEST)" but it didn't work and zope gave me this.


Site Error
An error was encountered while publishing this resource. 
Error Type: AttributeErrorError Value: logout

What did I do wrong??

		Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone.___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] How do I logout using DTML

2005-05-11 Thread Dennis Allison
Looks like your userfolder does not support a logout method as an 
inspection of the code would have established.  In fact, the 
only logout method that appears to be supported is in the 
App manager for the ZMI.   You may want to look at the code
and adapt it for your purposes.




On Wed, 11 May 2005, Allen Huang wrote:

 How do I logout current user using DTML
 I used dtml-call expr=acl_users.logout(REQUEST) but it didn't work and 
 zope gave me this.
  
 Site Error
 An error was encountered while publishing this resource. 
 
 Error Type: AttributeError
 Error Value: logout
 
  
 What did I do wrong??
 
 
 
 
   
 -
 Yahoo! Mail Mobile
  Take Yahoo! Mail with you! Check email on your mobile phone.

-- 
Dennis Allison * Computer Systems Laboratory * Gates 227
   * Stanford University *  Stanford CA  94305
   * (650) 723-9213 * (650) 723-0033 fax
   * [EMAIL PROTECTED]
   * [EMAIL PROTECTED]


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] How do I logout?

2000-11-08 Thread The Doctor What

* Ender ([EMAIL PROTECTED]) [001104 18:04]:
 I don't know if there is an elegant way to do this.
 
 if i'm the superuser i just try to find a junk method (The QuickStart
 Tutorial does nicely) and change the text to include the following. (if
 i'm another user it the same thing applies but i generally create a
 logout method._

What is a 'logout method._'?  Is that a "DTML Method" named logout?
Is the '_' a typo?  You mention method above, but I'm just making
sure we're talking about the same thing. :)

 dtml-raise Unauthorized
   Log Me out Scotty
 /dtml-raise
 

Thanks for the help.

Ciao!

-- 
Chemist who falls in acid is absorbed in work.

The Doctor What: Un-Humble   http://docwhat.gerf.org/
[EMAIL PROTECTED]   KF6VNC

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] How do I logout?

2000-11-04 Thread Lee Curtis

Hi all,

How do I logout or switch users when running Zope?

I've got some DTML code that does it - sometimes, othertimes it produces a
keyerror.

This must be a common problem - coz I'm logged in as super user and want to
switch back to my regular username.

Contributions of help greatly appreciated...

Thanks.

lee


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] How do I logout?

2000-11-04 Thread Ender

I don't know if there is an elegant way to do this.

if i'm the superuser i just try to find a junk method (The QuickStart
Tutorial does nicely) and change the text to include the following. (if
i'm another user it the same thing applies but i generally create a
logout method._

dtml-raise Unauthorized
Log Me out Scotty
/dtml-raise

when the basic auth box pops up, just change your username and click
enter, next time the pop up happens click cancel. now when you try to
browse around in any place requiring authorization, it will query you
for your password as the new user. 

Kapil

Lee Curtis wrote:
 
 Hi all,
 
 How do I logout or switch users when running Zope?
 
 I've got some DTML code that does it - sometimes, othertimes it produces a
 keyerror.
 
 This must be a common problem - coz I'm logged in as super user and want to
 switch back to my regular username.
 
 Contributions of help greatly appreciated...
 
 Thanks.
 
 lee
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )