Templating In Buildout
Upcoming SlideShare
Loading in...5
×
 

Templating In Buildout

on

  • 2,035 views

Templating, macro and shell commands in buildout.

Templating, macro and shell commands in buildout.

Statistics

Views

Total Views
2,035
Views on SlideShare
2,015
Embed Views
20

Actions

Likes
0
Downloads
12
Comments
0

5 Embeds 20

http://www.plug.org.ua 8
http://talk.quintagroup.com 5
http://www.slideshare.net 3
http://ploneua.quintagroup.com 2
http://plug.org.ua 2

Accessibility

Upload Details

Uploaded via as OpenOffice

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Templating In Buildout Templating In Buildout Presentation Transcript

  • 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
  • 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
  • References google ;) http://pypi.python.org http://svn.zope.org http://dev.plone.org/collective/browser/buildout https://ingeniweb.svn.sourceforge.net/svnroot/ingeniweb