Templating In Buildout

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    Templating In Buildout - Presentation Transcript

    1. Templating in buildouts Cherepanyak Volodymyr © Quintagroup, 2009
    2. 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
    3. 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>
    4. 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
    5. 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}
    6. Shell commands in buildout
      • iw.recipe.cmd
      • adds python scripting
      • cp.recipe.cmd
      • pushes shell commands into single script
    7. References google ;) http://pypi.python.org http://svn.zope.org http://dev.plone.org/collective/browser/buildout https://ingeniweb.svn.sourceforge.net/svnroot/ingeniweb

    + QuintagroupQuintagroup, 7 months ago

    custom

    361 views, 0 favs, 5 embeds more stats

    Templating, macro and shell commands in buildout.

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 361
      • 350 on SlideShare
      • 11 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 3
    Most viewed embeds
    • 4 views on http://talk.quintagroup.com
    • 3 views on http://www.plug.org.ua
    • 2 views on http://plug.org.ua
    • 1 views on http://ploneua.quintagroup.com
    • 1 views on http://www.slideshare.net

    more

    All embeds
    • 4 views on http://talk.quintagroup.com
    • 3 views on http://www.plug.org.ua
    • 2 views on http://plug.org.ua
    • 1 views on http://ploneua.quintagroup.com
    • 1 views on http://www.slideshare.net

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories