Re: [Zope-CMF] portal_actions condition

2005-05-26 Thread Chris Withers

cla wrote:

I want to add a condition in some portal_tab
that alows to show this or not,depending on
the user name that is logged.


that's faily evil. Why not bsaed on user permissions in context?
sounds like it belongs in an action's goard or something.

Urg, too long since I looked at these to remember the correct wording...

Chris

--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk

___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


[Zope-CMF] portal_actions condition

2005-04-25 Thread cla
hello!

I want to add a condition in some portal_tab
that alows to show this or not,depending on
the user name that is logged.

I have tried to use the getUserName to make the
compares but seems that he dont recongize that method

this was my try:
(in the condition field) python: 'user-name'==portal.getUserName()




SMS GRÁTIS do seu PC para qualquer rede nacional (TMN, Vodafone, Optimus e 
PTC). Basta instalar o SAPO Messenger e adicionar amigos!
Vá agora a : http://messenger.sapo.pt/sms/

___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests