This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# entrar no diretório onde o Plone foi instalado. | |
cd Plone | |
# criar um pacote para os tipos que vamos criar | |
cd src | |
../bin/zopeskel package.project | |
# adicionar "package.project" na seção eggs | |
# do buildout.cfg e depois rodar o buildout | |
../bin/buildout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo -E -u user wget www.google.com.br |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Adicionar o produto "dm.historical" na seção eggs do seu buildout.cfg, conforme abaixo: | |
[eggs] | |
dm.historical | |
Rodar o buildout e acessar o console, conforme abaixo: | |
bin/buildout | |
bin/client2 debug | |
Segue abaixo um exemplo de como recuperar o estado anterior de um portal: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contexto: | |
Ao rodar bin/buildout no Plone | |
Solução: | |
Adicionar na seção [versions] do buildout.cfg: | |
plone.app.jquery = 1.8.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Registrar visão | |
- Acessar "portal_types" no Zope e escolher o tipo de conteúdo (Plone Site, Folder, etc.) que poderá utilizar a nova visão. | |
- Adicionar a nova visão na listagem "Available view methods". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Acessar a interface do ZOPE (host:port/manage_main) | |
- Acessar acl_users/users | |
- Escolher o usuário e clicar em "Password" | |
- Alterar a senha, confirmar e clicar em "Update Password" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export http_proxy=http://user:password@proxy:port/ | |
export https_proxy=http://user:password@proxy:port/ | |
export ftp_proxy=http://user:password@proxy:port/ | |
export no_proxy=localhost | |
Se o apt-get não funcionar, adicionar as linhas abaixo no arquivo /etc/apt/apt.conf | |
Acquire::http::proxy "http://user:password@proxy:port/"; | |
Acquire::https::proxy "http://user:password@proxy:port/"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Algumas vezes é necessário utilizar mais de uma interface de rede, para poder acessar a Intranet e a Internet ao mesmo tempo. | |
Para isto, basta manter a interface primária como NAT e a secundária como BRIDGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Acessar /Control_Panel/Database/main e clicar em "Pack" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- ZOPE (criação de novos portais, cópia de portais, etc.): | |
host:port/manage_main | |
- Sair do ZOPE: | |
host:port/portal_name/@@plone-root-logout | |
- Configuração do site (portal): | |
host:port/portal_name/plone_control_panel | |
ou | |
host:port/portal_name/@@overview-controlpanel |