Re: [Zope] What's the tal expression to test for whether someone is logged in?

2007-04-01 Thread Tino Wildenhain

Ken Winter schrieb:

Andrew ~

Yes!! It worked.

One more question: Where (if anywhere) could I have looked up this answer
(and probably many more), so I wouldn't have to bother this list with
questions like this?


Its in the general Zope API and in the ZPT documenation regarding the
name spaces you use. Both are in the Zope-Book which is online:

http://www.plope.com/Books/2_7Edition

Also an older version directly at zope.org.

Regards
Tino
___
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] What's the tal expression to test for whether someone is logged in?

2007-04-01 Thread Ken Winter
Andrew ~

Yes!! It worked.

One more question: Where (if anywhere) could I have looked up this answer
(and probably many more), so I wouldn't have to bother this list with
questions like this?

~ Ken

> -Original Message-
> From: Andrew Milton [mailto:[EMAIL PROTECTED]
> Sent: Sunday, April 01, 2007 1:58 AM
> To: Ken Winter
> Cc: Zope List
> Subject: Re: [Zope] What's the tal expression to test for whether someone
> is logged in?
> 
> +---[ Ken Winter ]--
> | In other words, what should I substitute for X in the following to make
> this
> | division appear only when a user is logged in? :
> |
> |
> |
> |  ? 
> 
> tal:condition="python: user.has_role(['Authenticated'],)"
> 
> --
> Andrew Milton
> [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] What's the tal expression to test for whether someone is logged in?

2007-03-31 Thread Andrew Milton
+---[ Ken Winter ]--
| In other words, what should I substitute for X in the following to make this
| division appear only when a user is logged in? :
| 
|  
| 
|  ? 

tal:condition="python: user.has_role(['Authenticated'],)"

-- 
Andrew Milton
[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 )


[Zope] What's the tal expression to test for whether someone is logged in?

2007-03-31 Thread Ken Winter
In other words, what should I substitute for X in the following to make this
division appear only when a user is logged in? :

 

 . 

 

~ TIA

~ Ken

___
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 )