advertisement

Templating In Buildout

67 %
33 %
advertisement
Information about Templating In Buildout
Technology

Published on March 19, 2009

Author: Quintagroup

Source: slideshare.net

Description

Templating, macro and shell commands in buildout.
advertisement

Templating in buildouts Cherepanyak Volodymyr © Quintagroup, 2009

Templating in buildout amplecode.recipe.template (Jinja2) z3c.recipe.filetemplate (string.Template) iw.recipe.template (Cheetah Templates) inquant.recipe.textfile collective.recipe.template z3c.recipe.template

amplecode.recipe.template (Jinja2)

z3c.recipe.filetemplate (string.Template)

iw.recipe.template (Cheetah Templates)

inquant.recipe.textfile

collective.recipe.template

z3c.recipe.template

buildout macro zc.recipe.macro ... [buildout] ... parts = instance0 instance1 ... versions = versions ... ... [instance-macro] ... application = application ... zope.conf = ... <eventlog> ... <logfile> ... path /var/log/myapp/$${:__name__}-z3.log ... </logfile> ... </eventlog> ... <product-config zc.z3monitor> ... port $${:monitor-port} ... </product-config>

buildout macro ... [instance0] ... recipe = zc.recipe.macro ... result-recipe = zc.recipe.macro:test ... macro = instance-macro ... address = 8080 ... monitor-port = 8089 ... ... [instance1] ... recipe = zc.recipe.macro ... result-recipe = zc.recipe.macro:test ... macro = instance-macro ... address = 9080 ... monitor-port = 9089

Shell commands in buildout plone.recipe.command (os.system) [chown] recipe = plone.recipe.command command = chown -R ${instance:effective-user}:${instance:effective-user} ${buildout:directory} update-command = ${chown:command}

Shell commands in buildout iw.recipe.cmd adds python scripting cp.recipe.cmd pushes shell commands into single script

iw.recipe.cmd

adds python scripting

cp.recipe.cmd

pushes shell commands into single script

References google ;) http://pypi.python.org http://svn.zope.org http://dev.plone.org/collective/browser/buildout https://ingeniweb.svn.sourceforge.net/svnroot/ingeniweb

Add a comment

Related presentations

Presentación que realice en el Evento Nacional de Gobierno Abierto, realizado los ...

In this presentation we will describe our experience developing with a highly dyna...

Presentation to the LITA Forum 7th November 2014 Albuquerque, NM

Un recorrido por los cambios que nos generará el wearabletech en el futuro

Um paralelo entre as novidades & mercado em Wearable Computing e Tecnologias Assis...

Microsoft finally joins the smartwatch and fitness tracker game by introducing the...

Related pages

Templating in buildouts - YouTube

Templating in buildout 2. Buildout macro 3. ... У доповіді говориться про: 1. Templating in buildout 2. Buildout macro 3.
Read more

Templating in buildouts — Plone Ukraine

Файл презентації. Зміст презентації. Templating in buildout; Buildout macro; Shell commands in buildout ; Файл ...
Read more

djc.recipe 0.3.1 : Python Package Index

Templating. Functions; Default template options; Example usage. ... , allowing settings to reside inside the buildout instead of having them reside into ...
Read more

djc.recipe 0.5 : Python Package Index

Templating. Functions; ... , allowing settings to reside inside the buildout instead of having them reside into ... recipe = djc.recipe project = my.project
Read more

10. Theming — Mastering Plone 1.2.5a documentation

Buildout I; 13. Creating addons to customize Plone; 14. Views I; ... If it’s necessary to change a viewlet or the view of a content type, use TAL templating.
Read more

TAL page templates — Plone Documentation v5.0

Zope Page Templates ¶ Zope Page Templates, or ZPT for short, is an XML-based templating language, consisting of the Template Attribute Language (TAL), TAL ...
Read more

14. Buildout I — Plone Training 1.2.5a documentation

14. Buildout I¶ In this part you will: Learn about Buildout; Topics covered: Buildout; Recipes; Buildout Configuration; mr.developer; Buildout composes ...
Read more

Introduction to zc.buildout — Grok

Jim Fulton's tutorial for using buildout, ... Templating; Template Attribute Language ... Introduction to zc.buildout
Read more

Glossary — Plone Documentation v5.0

Glossary ¶ This is a glossary ... Buildout Buildout is a Python ... DTML is a server-side templating language used to produce dynamic pieces of content, ...
Read more