Ferramentas Pessoais
Você está aqui: Página Inicial Artigos Exportando dados da aba Security

Exportando dados da aba Security

Este artigo mostrará de forma simples como se dá a exportação da aba security do objeto que quiser exportar.

O que vamos fazer? O que iremos fazer?

Exportar as informações de um objeto da aba security

applications-engineering.png Mãos a obra!

Bem pra começar você precisa criar um arquivo . metadata ou seja digamos que vc quer restringir um script python para que somente Editores do site possam ve-lo, digamos também que o script se chama lista_editores.py então vamos criar um arquivo chamado lista_editores.py.metadata.

Cole o conteúdo dentro do arquivo metadata:
[security]
View=0:Authenticated

Este comando acima representa isto:

aquire

 

 

O primeiro parâmetro representa a Role (Regra) no caso View (Permissão de Ver)

O segundo parâmetro marca ou não o Acquire (Adquirir do Nível Superior) 0 = Desmarcado!

O terceiro parâmetro : Dois Pontos, sinaliza que virá os tipos de permissão

O quarto parâmetro representa
os tipos de permissão

 

 

 Ainda com dúvidas, talvez estes exemplos te ajude

Exemplo 1:

[security]
View=1:Authenticated
WebDAV Unlock items=0:Anonymous,Authenticated,Contributor,Reviewer
Undo changes=0:Contributor

Tela do Exemplo 1:

aquire2

 

Exemplo 2:

[security]
	
Access contents information=0:Anonymous,Authenticated,Contributor,Editor,Manager,Member,Owner,Reader,Reviewer
Change Page Templates=0:Anonymous,Authenticated,Contributor,Editor,Manager,Member,Owner,Reader,Reviewer
Change Python Scripts=0:Anonymous,Authenticated,Contributor,Editor,Manager,Member,Owner,Reader,Reviewer
Change bindings=0:Anonymous,Authenticated,Contributor,Editor,Manager,Member,Owner,Reader,Reviewer
Change cache settings=0:Anonymous,Authenticated,Contributor,Editor,Manager,Member,Owner,Reader,Reviewer
Change permissions=0:Anonymous,Authenticated,Contributor,Editor,Manager,Member,Owner,Reader,Reviewer
Change proxy roles=0:Anonymous,Authenticated,Contributor,Editor,Manager,Member,Owner,Reader,Reviewer
Copy or Move=0:Anonymous,Authenticated,Contributor,Editor,Manager,Member,Owner,Reader,Reviewer
Delete objects=0:Anonymous,Authenticated,Contributor,Editor,Manager,Member,Owner,Reader,Reviewer
FTP access=0:Anonymous,Authenticated,Contributor,Editor,Manager,Member,Owner,Reader,Reviewer
Manage WebDAV Locks=0:Anonymous,Authenticated,Contributor,Editor,Manager,Member,Owner,Reader,Reviewer
Manage portal=0:Anonymous,Authenticated,Contributor,Editor,Manager,Member,Owner,Reader,Reviewer
Manage properties=0:Anonymous,Authenticated,Contributor,Editor,Manager,Member,Owner,Reader,Reviewer

Take ownership=0:Anonymous,Authenticated,Contributor,Editor,Manager,Member,Owner,Reader,Reviewer
Undo changes=0:Anonymous,Authenticated,Contributor,Editor,Manager,Member,Owner,Reader,Reviewer
View=0:Anonymous,Authenticated,Contributor,Editor,Manager,Member,Owner,Reader,Reviewer
View management screens=0:Anonymous,Authenticated,Contributor,Editor,Manager,Member,Owner,Reader,Reviewer
View History=0:Anonymous,Authenticated,Contributor,Editor,Manager,Member,Owner,Reader,Reviewer
WebDAV Lock items=0:Anonymous,Authenticated,Contributor,Editor,Manager,Member,Owner,Reader,Reviewer
WebDAV Unlock items=0:Anonymous,Authenticated,Contributor,Editor,Manager,Member,Owner,Reader,Reviewer
WebDAV access=0:Anonymous,Authenticated,Contributor,Editor,Manager,Member,Owner,Reader,Reviewer

Tela do Exemplo 2:

aquire3

 

Simples não?, até a próxima.


Ações do documento
« Fevereiro 2019 »
Fevereiro
SeTeQuQuSeSaDo
123
45678910
11121314151617
18192021222324
25262728

Python Logo

       Zope Logo

 

      Novo Logo do Plone