Plone visto desde el ZMI. Instalación paso a paso de Plone 2.5 en windows. Como configurar puntos de montaje. zope.conf. Zope Management Interface - zmi. Estructura de un sitio, portlets, tipos de contenido. Arquitectura de plone, Zope desde el sistema de archivos, portal_workflow, error_log, portal_catalog, usuarios, roles y grupos,
8. zope.conf: configuración
C:Program FilesPlone 2Dataetczope.conf
###############################################################################
# The %include line below inserts the settings from plone.conf into this
# Zope configuration. Do not remove the %include line or duplicate any
# settings that are in plone.conf in zope.conf or vice-versa or Zope will
# fail to process your configuration at startup.
###############################################################################
%include plone.conf
###############################################################################
# What follows is a standard zope.conf file for Zope 2.x, modified only to
# support the settings in plone.conf.
###############################################################################
###############################################################################
# Welcome to Zope 2.
###############################################################################
#
# This is the Zope configuration file. The Zope configuration file
# shows what the default configuration directives are, and show
# examples for each directive. To declare a directive, make sure that
# you add it to a line that does not begin with '#'. Note that comments
# are only allowed at the beginning of a line: you may not add comments
# after directive text on the same line.
# ZConfig quot;definesquot; used for later textual substitution
%define INSTANCE C:Program FilesPlone2Data
%define ZOPE C:Program FilesPlone2Zope
%define PRODUCTS C:Program FilesPlone2DataProducts
# Directive: instancehome
#
# Description:
# The path to the data files, local product files, import directory,
# and Extensions directory used by Zope.
#
# Required (no default)
menttes
9. zope.conf: configuración
C:Program FilesPlone 2Dataetczope.conf línea 150
# Directive: debug-mode
#
# Description:
# A switch which controls several aspects of Zope operation useful for
# developing under Zope. When debug mode is on:
#
# - The process will not detach from the controlling terminal
#
# - Errors in product initialization will cause startup to fail
# (instead of writing error messages to the event log file).
#
# - Filesystem-based scripts such as skins, PageTemplateFiles, and
# DTMLFiles can be edited while the server is running and the server
# will detect these changes in real time. When this switch is
# off, you must restart the server to see the changes.
#
# Setting this to 'off' when Zope is in a
# production environment is encouraged, as it speeds execution (sometimes
# dramatically).
#
# Default: on
#
# Example:
#
# debug-mode on
debug-mode off #remplazar esta linea por esta:
debug-mode on
menttes
10. zope.conf: configuración
C:Program FilesPlone 2Dataetczope.conf línea 165
# Directive: effective-user
#
# Description:
# If you intend to run Zope as the quot;rootquot; user, you must supply this
# directive with an effective username or userid number to which Zope
# will 'suid' after the server ports are bound. This directive only
# has effect under UNIX and if Zope is started as the root user.
#
# Default: unset
#
# Example:
#
# effective-user chrism
menttes
11. zope.conf: configuración
C:Program FilesPlone 2Dataetczope.conf línea 216
# Directives: port-base
#
# Description:
# Offset applied to the port numbers used for ZServer
# configurations. For example, if the http-server port is 8080 and
# the port-base is 1000, the HTTP server will listen on port 9080.
# This makes it easy to change the complete set of ports used by a
# Zope server process
#
# Default:
#
# 0
#
# Example:
#
# port-base 1000
# port-base 1000 + default = 9080
menttes
12. zope.conf: configuración
C:Program FilesPlone 2Dataetczope.conf línea 884
# Database (zodb_db) section
#
# Description:
# A database section allows the definition of custom database and
# storage types. More than one zodb_db section can be defined.
#
# Default: unset.
# IMPORTANT: At least one database with a mount-point of quot;/quot;
# must be specified for Zope to start properly.
<zodb_db main>
# Main FileStorage database
<filestorage>
path $INSTANCE/var/Data.fs
</filestorage>
mount-point /
</zodb_db>
#Agregar:
<zodb_db curso>
<filestorage>
path $INSTANCE/var/curso/Data.fs
</filestorage>
mount-point /curso
</zodb_db>
menttes
13. Zope Management Interface
ZMI representa una vista dentro de la jerarquía de
objetos de Zope. Casi todos los links o botones en
ZMI representan una acción que es realizada contra
un objeto.
menttes
15. Punto de Montaje
Los puntos de montaje Zope (mount points),
facilitan la creación de distintos archivos ZODB en la
raiz de un mismo zope, permitiendo almacenar un
sitio plone en cada archivo.
menttes
16. Configuración: punto de montaje
1. Reiniciar plone
2. http://localhost:8080/manage
3. Add -> ZODB Mount Point
4. Crear carpeta curso en instance_foldervar
5. Click
menttes
17. Configuración: punto de montaje
6. http://localhost:8080/curso/manage
7. Add -> Plone Site
8. Completar id y
descripción
9. Click
menttes
18. Configuración: punto de montaje
10. http://localhost:8080/curso/www
11. Leer: Congratulations! You have successfully installed Plone.
menttes
24. Contenido: Area de Contenido
editar, agregar propiedades
listar
mostrar workflow
menttes
25. Contenido: Tipos de contenido
De fábrica Plone provee distintos tipos de contenido
con diferentes funcionalidades, vistas y propósitos.
Cada tipo de contenido tiene sus propios campos,
vistas y además puede estár asociado a portlets y
otros objetos del sitio.
menttes
26. Contenido: Tipos de contenido
Provistos por Plone
Ejemplo de
extensión a
documento
menttes
28. Productos Zope
● Es el mecanismo de extensión de Zope/Plone
● Plone técnicamente está constituído por un conjunto
de productos Zope, el mismo mecanismo es
empleado en la aplicación Plone.
● Ejemplos:
Plone, archetypes, wikis, blogs
menttes
29. Productos Zope
Un producto agrega:
● Nuevos tipos de contenido
● Nuevas funcionalidades
● Proveer nuevo estilo (skins)
menttes
33. Productos Zope: Ejemplo en migración
1. Bajar data.fs
2. Apagar instancia
3. Reemplazar cursos/data.fs por nuevo data.fs
4. Agregar producto clouseau
5. reiniciar Plone
6. ir a quick installer
7. comprobar productos
menttes
34. Objetos de un Sitio Plone
Tipos de objetos:
● Login & membership tools
acl_users, cookie_authentication, portal_groups, portal_groupdata,
portal_memberdata, portal_membership, portal_registration
● Content Type Tools
content_type_registry, portal_factory, portal_types, portal_workflow,
portal_metadata, portal_skins, portal_catalog
● Content Specific Tools
portal_calendar, portal_discussion
● Utilities
MailHost, portal_syndication, plone_utils, portal_controlpanel, portal_migration,
portal_quickinstaller
menttes
35. Objetos de un Sitio Plone
Tipos de objetos:
● Caching Tools
RAMCache, HTTPCache, caching_policy_manager
● Miscellaneous Tools
error_log, index_html, portal_actionicons, portal_actions, portal_interface,
portal_properties, portal_undo, portal_url
● Online Help System
Context-Sensitive Help
menttes
36. portal_workflow
Un workflow provee una forma lógica de administrar
contenido dentro de un sitio Plone. Inicialmente se
dispone de dos workflows, workflow por defecto y el
workflow de carpetas.
El workflow por defecto establece los estados y
transiciones para cada tipo de contenido excepto las
carpetas que poseen su propio workflow.
menttes
37. portal_workflow
Permite:
● Asociar Content Types y workflows
● Modificar Workflows existentes
● Crear un nuevo workflow
● Personalizar las configuraciones de seguridad de
workflows dados
menttes
39. portal_workflow: ejemplo
1. auntenticarse como el usuario nancy
2. revisar estado actual del contenido test en el workflow
3. visitar el url desde otra dirección (reemplazar nombre por nro. de ip)
4. cambiar estado a publicado
5. comprobar visibilidad desde acceso anónimo
6. repetir el proceso llevando el documento a privado
menttes
47. portal_catalog
Zcatalog provee un mecanismo poderoso de
indexación y búsqueda en la base de datos Zope
denominado ZCatalog.
portal_catalog es un wrapper de Zcatalog que provee
indices adicionales, metadatos y políticas específicas
para las operaciones de un sitio Plone.
menttes
48. portal_catalog
Permite:
● Seleccionar vocabulario
(inglés, japonés, etc)
● Seleccionar metadata
Los valores de los atributos que coinciden con el nombre en esta lista son los
catalogados.
● Seleccionar índices
Los valores de cualquier atributo y método que coincide con un índice en esta lista
son los indexados.
menttes
49. portal_catalog
Permite:
● Localizar y agregar objetos al catálogo
● Actualizar manualmente objetos en el catálogo
● Remover objetos del catálogo
menttes
53. Usuarios, roles, grupos
Cada usuario que nevega dentro de un sitio plone
puede acceder a un contenido dado dependiendo del
rol del usuario y el estado del contenido.
El contenido posee uno de los estados previamente
definido en un workflow.
menttes
54. Usuarios, roles, grupos
Existen dos tipos de roles en plone:
● global
● local
Un rol global tiene efecto en todo un sitio Plone, mientras que uno
local abarca carpetas.
menttes
55. Usuarios, roles, grupos
Cada usuario posee al menos un rol, el rol standar de
miembro, aunque los usuarios pueden tener mas un
rol.
menttes
56. Usuarios, roles, grupos
Rol Manager
Es el rol mas alto que puede lograr un usuario y es un
rol global. Tiene los mas altos privilegios dentro de
Plone y puede realizar tareas tales como:
● Agregar y modificar usuarios
● Asingar o quitar roles locales a usuarios
● Publicar, rechazar o modificar todo los contenidos
● Modificar templates y otros elementos de la instalación de Plone.
menttes
57. Usuarios, roles, grupos
Rol Miembro
● Adquirido cuando alguien se quot;unequot; a un sitio plone.
● Posee su propio espacio dentro de Plone, donde se pueden crear,
modificar y generalmente manetener los contenidos propios.
menttes
58. Usuarios, roles, grupos
Grupos
El concepto de grupo es un concepto agregado por
Plone al modelo de seguridad de Plone. Los grupos es
una forma de administrar roles (y por lo tanto
permisos) para un número de usuarios
simultáneamente.
menttes
59. Referencias
● Understanding permissions and security - Plone.org
● What controls what you see – Plone.org
● The Zope Book (2.6 Edition)
● Z Catalog Tutorial - Zope.org
● The Definitive Guide of Plone - Apress
● Plone Live – SourceBeat
menttes