Você pode Proxy Roles para executar o script como manager atribuindo a 
permissão 'Manager' na aba proxy do mesmo.

[]'s
Fernando Bezerra



--- Em zope-pt@yahoogrupos.com.br, Alexandre Chagas <alexandre....@...> escreveu
>
> Já tinha visto, veja:
> 
> [image: Secure Mail Host] * Secure Mail Host at
> /<http://reid.mj.gov.br:8082/manage_workspace>
> portal 
> <http://reid.mj.gov.br:8082/portal/manage_workspace>/passoafrente<http://reid.mj.gov.br:8082/portal/passoafrente/manage_workspace>
> /portal_skins<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/manage_workspace>
> /custom<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/manage_workspace>
> /formularios<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/manage_workspace>
> /MailHost<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/MailHost/manage_workspace>
> *
>   
> Help!<http://reid.mj.gov.br:8082/HelpSys?help_url=/Control_Panel/Products/OFSP/Help/Security.stx>
> 
> The listing below shows the current security settings for this item.
> Permissions are rows and roles are columns. Checkboxes are used to indicate
> where roles are assigned permissions. You can also assign *local
> roles<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/MailHost/manage_listLocalRoles>
> * to users, which give users extra roles in the context of this object and
> its subobjects.
> 
> When a role is assigned to a permission, users with the given role will be
> able to perform tasks associated with the permission on this item. When the
> *Acquire permission settings* checkbox is selected then the containing
> objects's permission settings are used. Note: the acquired permission
> settings may be augmented by selecting Roles for a permission in addition to
> selecting to acquire permissions.
>     *Permission*
>   *Roles*
>    * Acquire
> permission
> settings<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/MailHost/manage_acquiredForm>?
> *
> 
>  
> Anonymous<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/MailHost/manage_roleForm?role_to_manage=Anonymous>
>   
> Authenticated<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/MailHost/manage_roleForm?role_to_manage=Authenticated>
>   
> Manager<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/MailHost/manage_roleForm?role_to_manage=Manager>
>   
> Member<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/MailHost/manage_roleForm?role_to_manage=Member>
>   
> Owner<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/MailHost/manage_roleForm?role_to_manage=Owner>
>   
> Reviewer<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/MailHost/manage_roleForm?role_to_manage=Reviewer>
>   
> alimentador<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/MailHost/manage_roleForm?role_to_manage=alimentador>
>     Access contents
> information<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/MailHost/manage_permissionForm?permission_to_manage=Access%20contents%20information>
>                Change
> configuration<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/MailHost/manage_permissionForm?permission_to_manage=Change%20configuration>
>                Change
> permissions<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/MailHost/manage_permissionForm?permission_to_manage=Change%20permissions>
>                Copy or
> Move<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/MailHost/manage_permissionForm?permission_to_manage=Copy%20or%20Move>
>                Delete
> objects<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/MailHost/manage_permissionForm?permission_to_manage=Delete%20objects>
>                Manage WebDAV
> Locks<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/MailHost/manage_permissionForm?permission_to_manage=Manage%20WebDAV%20Locks>
>                Manage
> properties<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/MailHost/manage_permissionForm?permission_to_manage=Manage%20properties>
>                Take
> ownership<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/MailHost/manage_permissionForm?permission_to_manage=Take%20ownership>
>                Undo
> changes<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/MailHost/manage_permissionForm?permission_to_manage=Undo%20changes>
>                Use mailhost
> services<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/MailHost/manage_permissionForm?permission_to_manage=Use%20mailhost%20services>
>              * 
> Acquire<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/MailHost/manage_acquiredForm>?
> *
> 
>  
> Anonymous<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/MailHost/manage_roleForm?role_to_manage=Anonymous>
>   
> Authenticated<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/MailHost/manage_roleForm?role_to_manage=Authenticated>
>   
> Manager<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/MailHost/manage_roleForm?role_to_manage=Manager>
>   
> Member<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/MailHost/manage_roleForm?role_to_manage=Member>
>   
> Owner<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/MailHost/manage_roleForm?role_to_manage=Owner>
>   
> Reviewer<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/MailHost/manage_roleForm?role_to_manage=Reviewer>
>   
> alimentador<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/MailHost/manage_roleForm?role_to_manage=alimentador>
>     
> View<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/MailHost/manage_permissionForm?permission_to_manage=View>
>                View management
> screens<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/MailHost/manage_permissionForm?permission_to_manage=View%20management%20screens>
>                WebDAV Lock
> items<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/MailHost/manage_permissionForm?permission_to_manage=WebDAV%20Lock%20items>
>                WebDAV Unlock
> items<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/MailHost/manage_permissionForm?permission_to_manage=WebDAV%20Unlock%20items>
>                WebDAV
> access<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/MailHost/manage_permissionForm?permission_to_manage=WebDAV%20access>
> 
> 
> 2009/7/14 Gustavo Lepri <gustavole...@...>
> 
> >
> >
> > Alexandre,
> >
> > Dá uma olhada na permissão 'Use mailhost services'.
> >
> > Se não me engano ele só está setado para o Manager.
> >
> > Gustavo
> >
> >
> > 2009/7/14 Alexandre Chagas <alexandre....@...>
> >
> >>
> >>
> >> O código envia.py está desta forma:
> >>
> >> from Products.PythonScripts.standard import html_quote
> >> request = container.REQUEST
> >> RESPONSE =  request.RESPONSE
> >> mailhost = context.MailHost
> >> mail_to = "alexandre.so...@..."
> >> nome_completo = request['nome_completo']
> >> titulo = request['titulo']
> >> resumo = request['resumo']
> >> ideia = request['ideia']
> >> email_from_address = request['email']
> >>
> >> msg = """
> >>
> >> Mais uma nova ideia esta no ar...
> >>
> >> Nome............: %s
> >> E-mail..........: %s
> >> Titulo..........: %s
> >> Resumo..........: %s
> >> Ideia...........: %s
> >> """ % (nome_completo, email_from_address, titulo, resumo, ideia)
> >>
> >> #print msg
> >> #return printed
> >>
> >> email_assunto = "[Envio de uma Nova Ideia]"
> >>
> >> mailhost.send(msg, mail_to, email_from_address, email_assunto)
> >>
> >> return RESPONSE.redirect('retorno_sucesso')
> >>
> >>
> >>
> >>
> >> 2009/7/14 Alexandre Chagas <alexandre....@...>
> >>
> >>> Lista,
> >>>
> >>> Se alguém puder ajudar, vejam:
> >>>
> >>> Dentro de *custom/formulario* tem os arquivos:
> >>>
> >>>
> >>>  [image: Script 
> >>> (Python)]<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/envia.py/manage_workspace>
> >>>   envia.py
> >>> <http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/envia.py/manage_workspace>
> >>>  [image:
> >>> External 
> >>> Editor]<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/externalEdit_/envia.py>
> >>>   1 Kb
> >>>   2009-07-14 10:33
> >>>     [image: Page 
> >>> Template]<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/formulario-enviar-ideia/manage_workspace>
> >>>   formulario-enviar-ideia
> >>> <http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/formulario-enviar-ideia/manage_workspace>
> >>>  [image:
> >>> External 
> >>> Editor]<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/externalEdit_/formulario-enviar-ideia>
> >>>   1 Kb
> >>>   2009-07-13 20:54
> >>>     [image: Page 
> >>> Template]<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/mural/manage_workspace>
> >>>   mural
> >>> <http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/mural/manage_workspace>
> >>>  [image:
> >>> External 
> >>> Editor]<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/externalEdit_/mural>
> >>>   1 Kb
> >>>   2009-07-09 16:07
> >>>     [image: Page 
> >>> Template]<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/retorno_sucesso/manage_workspace>
> >>>   retorno_sucesso
> >>> <http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/retorno_sucesso/manage_workspace>
> >>>  [image:
> >>> External 
> >>> Editor]<http://reid.mj.gov.br:8082/portal/passoafrente/portal_skins/custom/formularios/externalEdit_/retorno_sucesso>
> >>>
> >>> a pasta *formulario* está declarado na aba *Properties* de 
> >>> *PortalSkins*para que os arquivos localizados dentro de formulários 
> >>> possam ser
> >>> encontrados
> >>>
> >>> Devo utilizar este formulario para enviar e-mails, o problema é que só
> >>> funciona quando me encontro logado independente do tipo de usuário...
> >>>
> >>> Quando tento utilizar este formulário "deslogado" cai na tela de login do
> >>> plone.
> >>>
> >>> Alguém poderia me dar uma luz :(, estou perdido pois tenho uma
> >>> apresentação às 14:30...
> >>>
> >>>
> >>> --
> >>> Alexandre das Chagas Souza
> >>> WebDesigner / Desenvolvedor PZP
> >>> http://www.alexandrechagas.com.br
> >>> (61) 8459-2803
> >>>
> >>
> >>
> >>
> >> --
> >> Alexandre das Chagas Souza
> >> WebDesigner / Desenvolvedor PZP
> >> http://www.alexandrechagas.com.br
> >> (61) 8459-2803
> >>
> >>
> >>
> >
> >
> > 
> >
> 
> 
> 
> -- 
> Alexandre das Chagas Souza
> WebDesigner / Desenvolvedor PZP
> http://www.alexandrechagas.com.br
> (61) 8459-2803
>


Responder a