Na classe de seu portlet, coloque a função *available*, se ela retornar True
o portlet aparece, caso False não aparece. Como o exemplo abaixo.

class Renderer(base.Renderer):
    """Portlet renderer.

    This is registered in configure.zcml. The referenced page template is
    rendered, and the implicit variable 'view' will refer to an instance
    of this class. Other methods can be added and referenced in the
template.
    """

    # The 'available' property is used to determine if the portlet should
    # be shown.

    @property
    def available(self):
        mtool = getToolByName(self, 'portal_membership')
        if mtool.isAnonymousUser():
            return False
        else:
            rerturn True



2008/9/1 Cristina Souza <[EMAIL PROTECTED]>

>   Como escondo portlets de usuários não logados na minha página?
> Uso o Plone 3.1.4
>
> Abraços!
>
>  
>



-- 
Ronaldo Amaral Santos
Tecnólogo em Desenvolvimento de Software
Núcleo de Pesquisa em Sistemas de Informação – NSI
Cefet-Campos
-------------------------
Linux User #437600

Responder a