Revision [986]
Last edited on 2009-04-04 11:04:56 by JavierWilsonAdditions:
Enter project name: guegue.alcaldias
egg: gueguealcaldias
package: gueguealcaldias
project: guegue.alcaldias
Enter title (The title of the project) ['Plone Example']: Sistema de Alcaldias de Guegue
# cd guegue.alcaldias/guegue/alcaldias
easy_install-2.4 guegue.alcaldias
egg: gueguealcaldias
package: gueguealcaldias
project: guegue.alcaldias
Enter title (The title of the project) ['Plone Example']: Sistema de Alcaldias de Guegue
# cd guegue.alcaldias/guegue/alcaldias
easy_install-2.4 guegue.alcaldias
Deletions:
egg: SistemaAlcaldias
package: sistemaalcaldias
project: SistemaAlcaldias
Enter title (The title of the project) ['Plone Example']: Sistema de Alcaldias
# cd SistemaAlcaldias/guegue/alcaldias
easy_install-2.4 SistemaAlcaldia
Revision [976]
Edited on 2008-12-20 12:03:55 by JavierWilsonAdditions:
Archivos ejemplo:
Revision [975]
Edited on 2008-12-20 11:55:07 by JavierWilsonAdditions:
{{files}}
Deletions:
Revision [974]
Edited on 2008-12-20 11:53:59 by JavierWilsonAdditions:
{files}
Revision [973]
Edited on 2008-12-20 11:49:41 by JavierWilsonAdditions:
cd ../../../
easy_install-2.4 SistemaAlcaldia
A menos que el el producto sea del namespace ##Product## debe especificarse a Plone que lo cargue el paquete, creando un archivo -configure.zcml en etc/package-includes/
echo ' ' > alcaldias-configure.zcml
Luego es ir al sitio de plone e instalar el producto desde prefs_install_products_form como de costumbre, y probar agregar un registro.
Para modificar el schema puede hacerlo editando por ejemplo: Alcaldias/guegue/alcaldias/content/proyecto.py
Para agregar un campo donde se pueda ingresar contenido con formato HTML, aqui lo llamamos body:
[...]
ProyectoSchema = schemata.ATContentTypeSchema.copy() + atapi.Schema((
# -*- Your Archetypes field definitions here ... -*-
atapi.TextField('body',
searchable=1,
required=0,
primary=1,
default_content_type='text/html',
default_output_type='text/html',
allowable_content_types=('text/plain','text/structured', 'text/html', 'text/restructured'),
widget=atapi.RichWidget(label='Texto',
label_msgid="label_entry_body",
description_msgid="help_entry_body",
i18n_domain="guegue.alcaldias",
description="Puede entrar el texto del proyecto completo.")),
))
[...]
easy_install-2.4 SistemaAlcaldia
A menos que el el producto sea del namespace ##Product## debe especificarse a Plone que lo cargue el paquete, creando un archivo -configure.zcml en etc/package-includes/
echo '
Luego es ir al sitio de plone e instalar el producto desde prefs_install_products_form como de costumbre, y probar agregar un registro.
Para modificar el schema puede hacerlo editando por ejemplo: Alcaldias/guegue/alcaldias/content/proyecto.py
Para agregar un campo donde se pueda ingresar contenido con formato HTML, aqui lo llamamos body:
[...]
ProyectoSchema = schemata.ATContentTypeSchema.copy() + atapi.Schema((
# -*- Your Archetypes field definitions here ... -*-
atapi.TextField('body',
searchable=1,
required=0,
primary=1,
default_content_type='text/html',
default_output_type='text/html',
allowable_content_types=('text/plain','text/structured', 'text/html', 'text/restructured'),
widget=atapi.RichWidget(label='Texto',
label_msgid="label_entry_body",
description_msgid="help_entry_body",
i18n_domain="guegue.alcaldias",
description="Puede entrar el texto del proyecto completo.")),
))
[...]
Deletions:
A menos que el el producto sea del namespace ##Product## debe especificarse a Plone que lo cargue, creando un archivo -configure.zcml en etc/package-includes/
echo '
Luego es ir al sitio de plone e instalar el producto desde prefs_install_products_form como de costumbre.
Revision [972]
Edited on 2008-12-20 11:13:53 by JavierWilsonAdditions:
Ahora a crear uno o varios arquetipos, entramos primero al producto, y al paquete que acabamos de crear:
# cd SistemaAlcaldias/guegue/alcaldias
# cd SistemaAlcaldias/guegue/alcaldias
Deletions:
# cd SistemaAlcaldias/guegue
Revision [971]
Edited on 2008-12-20 11:12:07 by JavierWilsonAdditions:
Selected and implied templates:
ZopeSkel#basic_namespace A project with a namespace package
ZopeSkel#plone A Plone project
ZopeSkel#archetype A Plone project that uses Archetypes
Enter project name: SistemaAlcaldias
Variables:
egg: SistemaAlcaldias
package: sistemaalcaldias
project: SistemaAlcaldias
# cd SistemaAlcaldias/guegue
ZopeSkel#basic_namespace A project with a namespace package
ZopeSkel#plone A Plone project
ZopeSkel#archetype A Plone project that uses Archetypes
Enter project name: SistemaAlcaldias
Variables:
egg: SistemaAlcaldias
package: sistemaalcaldias
project: SistemaAlcaldias
# cd SistemaAlcaldias/guegue