SlideShare a Scribd company logo
Discussion
0 Who am I?
0 If Zope is a fish, what is Plone?
0 Pros & Cons of Plone
0 Prerequisites
0 Two ways to get started
0 The [parts] of Buildout
0 Content Types with Paster
0 Zope Page Templates (ZPT)
0 Resources
Who am I?
Work
Senior Manager Decernis
6 years Plone Development &
Project Management
Education
MA – Carnegie Mellon University
MSc – University of Bologna
Certified Scrum Master (CSM)
If Zope is a fish, what is Plone?
A very brief history
1995 – Zope Corp founded
1998 – Zope 2 released
1999 – Plone project begun to skin CMFDefault
2001 – Plone 1 released
2004 – Zope 3 presents a new paradigm
2004 – Plone 2 released
2005 – Five (Zope 2 + 3) released
2006 – Grok project started
2007 – Plone 3 released
2009 – Pyramid branches off
2010 – Zope Toolkit (ZTK)
2010 – Plone 4 released
Who uses Plone?
Governments/Agencies: Brazil, FBI, NASA, USAID…
NGOs: Oxfam, Amnesty International, …
Universities: Wisconsin, Penn State, Harvard SEAS…
Companies: Discover Magazine, Novell…
Pros & Cons
• Intranets
• Shared documents
• Powerful workflow
• Batteries included
• Most secure CMS
• Well-documented
• Many developers
• Application &
Framework
• Non-standard setup
• High learning curve
• Confusing stack
• Themeing is hard
• RAM hungry
• Not broadly adopted
Why I chose Plone
0 Security a major concern
0 Customized workflow major need
0 Stable code base
0 Used by peer organizations in regulatory sector
0 Batteries Included: User Management, Content Types,
Workflow, Cacheing, Clustered Databases…
0 Ease of content type development
0 Django too bleeding edge in 2008
0 Community involvement
Prerequisites
0 Internet Connection
0 Plone 4.2+ supports Python 2.7
0 PIL, GCC
0 virtualenv/virtuanevwrapper
0 Xcode (Mac)
0 Python Windows Extension (Windows)
0 Root access for production (VPS, Server, Laptop, etc.)
Mac: export ARCHFLAGS="-Wno-error=unused-command-
line-argument-hard-error-in-future"
The Plone Stack
Basic
• Webserver
• Zope
Intermediate
• Web Server
• ZEO Clients
• ZEO Server
Advanced
• Web Server
• Proxy/Load
Balancer
• ZEO Clients
• ZEO Server
Two ways to get started
Unified
Installer Buildout
Unified Installer is easy
$ wget
https://launchpad.net/plone/4.2/4.2.4/+downloa
d/Plone-4.2.4-UnifiedInstaller-r3.tgz
$ tar -zxvf Plone-4.2.4-UnifiedInstaller-
r3.tgz
$ cd Plone-4.2.4-UnifiedInstaller-r3
$ ./install.sh --
target=/Users/patrickwaldo/workspace/plone-
demo --instance=awpug-test --static-lxml=yes
standalone
$ cd /Users/patrickwaldo/workspace/plone-demo
$ ./bin/instance fg
The [parts] of Buildout
Getting started
$ mkdir awpug-plone
$ virtualenv --no-site-packages awpug-
python
$ cd awpug-plone
$ wget
http://svn.plone.org/svn/plone/buildout
s/plone-coredev/branches/4.2/
bootstrap.py
$ vi buildout.cfg
The [parts] of Buildout
[buildout]
extends =
http://dist.plone.org/release/4.2/versi
ons.cfg
parts += instance zopepy zopeskel
eggs =
Pillow
develop =
zcml =
The [parts] of Buildout cont’d
[instance]
recipe = plone.recipe.zope2instance
user = admin:admin
eggs =
Plone
${buildout:eggs}
[zopepy]
recipe = zc.recipe.egg
eggs = ${buildout:eggs}
interpreter = zopepy
scripts = zopepy
The [parts] of Buildout cont’d
[zopeskel]
recipe = zc.recipe.egg
eggs =
ZopeSkel
Paste
PasteDeploy
PasteScript
${buildout:eggs}
Bootstrapping it all together
$ cd awpug-demo
$ ../awpug-python/bin/python
bootstrap.py
$ ./bin/buildout
$ ./bin/instance fg
Default Content Types
Page Folder
Collection News Item
Event File
Image Link
Content Types with Paster
$ paster create --list-templates
$ paster create –t archectype
awpug.content
$ cd awpug.content
$ paster addcontent contenttype
Remember to add your new package to your buildout!
Let’s add a view
$ cd src/awpug.content
$ paster addcontent view
Zope Page Templates (ZPT)
tal:content = Fill tag with your content
tal:replace = Replace tag with content
tal:condition = If condition, then display tag
tal:repeat = Iterate through an object
tal:attributes = Fill a tag attribute (e.g. href)
Resources
docs.plone.org
#plone irce.freenode.net
Thank you!
Services and Systems to Help you Comply
in Global Markets
www.decernis.com

More Related Content

Similar to 20140626 awpug-plonely in austin

Wpd09 Sydney
Wpd09 SydneyWpd09 Sydney
Wpd09 Sydney
virginiachoy
 
Wageningen phenotype meeting
Wageningen phenotype meetingWageningen phenotype meeting
Wageningen phenotype meetingthehyve
 
Deployment and Continous Integration of a Zope/Plone application
Deployment and Continous Integration of a Zope/Plone applicationDeployment and Continous Integration of a Zope/Plone application
Deployment and Continous Integration of a Zope/Plone application
Julien Pivotto
 
Open Source on the Mainframe Mini-Summit 2019 - How Open Source is Modernizin...
Open Source on the Mainframe Mini-Summit 2019 - How Open Source is Modernizin...Open Source on the Mainframe Mini-Summit 2019 - How Open Source is Modernizin...
Open Source on the Mainframe Mini-Summit 2019 - How Open Source is Modernizin...
Open Mainframe Project
 
Iz Pack
Iz PackIz Pack
Iz Pack
Inria
 
10 Things About Plone - Software Freedom Day 2008
10 Things About Plone - Software Freedom Day 200810 Things About Plone - Software Freedom Day 2008
10 Things About Plone - Software Freedom Day 2008
Jazkarta, Inc.
 
Journeys with Transmogrifier and friends or How not to get stuck in the Plone...
Journeys with Transmogrifier and friends or How not to get stuck in the Plone...Journeys with Transmogrifier and friends or How not to get stuck in the Plone...
Journeys with Transmogrifier and friends or How not to get stuck in the Plone...
Daniel Jowett
 
Modernisation of Legacy PHP Applications to Symfony2 - Symfony Live Berlin 2012
Modernisation of Legacy PHP Applications to Symfony2 - Symfony Live Berlin 2012Modernisation of Legacy PHP Applications to Symfony2 - Symfony Live Berlin 2012
Modernisation of Legacy PHP Applications to Symfony2 - Symfony Live Berlin 2012
Fabrice Bernhard
 
Introduction to Plone
Introduction to PloneIntroduction to Plone
Introduction to Plone
Jazkarta, Inc.
 
Plone 6 Theming from Scratch
Plone 6 Theming from ScratchPlone 6 Theming from Scratch
Plone 6 Theming from Scratch
Stefan Antonelli
 
Introduction to Plone (November 2003)
Introduction to Plone (November 2003)Introduction to Plone (November 2003)
Introduction to Plone (November 2003)
Kiran Jonnalagadda
 
Frequently asked questions answered frequently - but now for the last time
Frequently asked questions answered frequently - but now for the last timeFrequently asked questions answered frequently - but now for the last time
Frequently asked questions answered frequently - but now for the last timeAndreas Jung
 
POCO C++ Libraries Intro and Overview
POCO C++ Libraries Intro and OverviewPOCO C++ Libraries Intro and Overview
POCO C++ Libraries Intro and OverviewGünter Obiltschnig
 
10 Things You Probably Didn't Know About Plone
10 Things You Probably Didn't Know About Plone10 Things You Probably Didn't Know About Plone
10 Things You Probably Didn't Know About Plone
Jazkarta, Inc.
 
Tycho - Building plug-ins with Maven
Tycho - Building plug-ins with MavenTycho - Building plug-ins with Maven
Tycho - Building plug-ins with Maven
Pascal Rapicault
 
The Plone is dead, long live the Plone!
The Plone is dead, long live the Plone!The Plone is dead, long live the Plone!
The Plone is dead, long live the Plone!
Alexander Loechel
 
Run your Java code on Cloud Foundry
Run your Java code on Cloud FoundryRun your Java code on Cloud Foundry
Run your Java code on Cloud Foundry
Andy Piper
 
Iceberg
IcebergIceberg
Iceberg
ESUG
 
Run your Java apps on Cloud Foundry
Run your Java apps on Cloud FoundryRun your Java apps on Cloud Foundry
Run your Java apps on Cloud Foundry
Andy Piper
 
Run Your Java Code on Cloud Foundry - Andy Piper (Pivotal)
Run Your Java Code on Cloud Foundry - Andy Piper (Pivotal)Run Your Java Code on Cloud Foundry - Andy Piper (Pivotal)
Run Your Java Code on Cloud Foundry - Andy Piper (Pivotal)
jaxLondonConference
 

Similar to 20140626 awpug-plonely in austin (20)

Wpd09 Sydney
Wpd09 SydneyWpd09 Sydney
Wpd09 Sydney
 
Wageningen phenotype meeting
Wageningen phenotype meetingWageningen phenotype meeting
Wageningen phenotype meeting
 
Deployment and Continous Integration of a Zope/Plone application
Deployment and Continous Integration of a Zope/Plone applicationDeployment and Continous Integration of a Zope/Plone application
Deployment and Continous Integration of a Zope/Plone application
 
Open Source on the Mainframe Mini-Summit 2019 - How Open Source is Modernizin...
Open Source on the Mainframe Mini-Summit 2019 - How Open Source is Modernizin...Open Source on the Mainframe Mini-Summit 2019 - How Open Source is Modernizin...
Open Source on the Mainframe Mini-Summit 2019 - How Open Source is Modernizin...
 
Iz Pack
Iz PackIz Pack
Iz Pack
 
10 Things About Plone - Software Freedom Day 2008
10 Things About Plone - Software Freedom Day 200810 Things About Plone - Software Freedom Day 2008
10 Things About Plone - Software Freedom Day 2008
 
Journeys with Transmogrifier and friends or How not to get stuck in the Plone...
Journeys with Transmogrifier and friends or How not to get stuck in the Plone...Journeys with Transmogrifier and friends or How not to get stuck in the Plone...
Journeys with Transmogrifier and friends or How not to get stuck in the Plone...
 
Modernisation of Legacy PHP Applications to Symfony2 - Symfony Live Berlin 2012
Modernisation of Legacy PHP Applications to Symfony2 - Symfony Live Berlin 2012Modernisation of Legacy PHP Applications to Symfony2 - Symfony Live Berlin 2012
Modernisation of Legacy PHP Applications to Symfony2 - Symfony Live Berlin 2012
 
Introduction to Plone
Introduction to PloneIntroduction to Plone
Introduction to Plone
 
Plone 6 Theming from Scratch
Plone 6 Theming from ScratchPlone 6 Theming from Scratch
Plone 6 Theming from Scratch
 
Introduction to Plone (November 2003)
Introduction to Plone (November 2003)Introduction to Plone (November 2003)
Introduction to Plone (November 2003)
 
Frequently asked questions answered frequently - but now for the last time
Frequently asked questions answered frequently - but now for the last timeFrequently asked questions answered frequently - but now for the last time
Frequently asked questions answered frequently - but now for the last time
 
POCO C++ Libraries Intro and Overview
POCO C++ Libraries Intro and OverviewPOCO C++ Libraries Intro and Overview
POCO C++ Libraries Intro and Overview
 
10 Things You Probably Didn't Know About Plone
10 Things You Probably Didn't Know About Plone10 Things You Probably Didn't Know About Plone
10 Things You Probably Didn't Know About Plone
 
Tycho - Building plug-ins with Maven
Tycho - Building plug-ins with MavenTycho - Building plug-ins with Maven
Tycho - Building plug-ins with Maven
 
The Plone is dead, long live the Plone!
The Plone is dead, long live the Plone!The Plone is dead, long live the Plone!
The Plone is dead, long live the Plone!
 
Run your Java code on Cloud Foundry
Run your Java code on Cloud FoundryRun your Java code on Cloud Foundry
Run your Java code on Cloud Foundry
 
Iceberg
IcebergIceberg
Iceberg
 
Run your Java apps on Cloud Foundry
Run your Java apps on Cloud FoundryRun your Java apps on Cloud Foundry
Run your Java apps on Cloud Foundry
 
Run Your Java Code on Cloud Foundry - Andy Piper (Pivotal)
Run Your Java Code on Cloud Foundry - Andy Piper (Pivotal)Run Your Java Code on Cloud Foundry - Andy Piper (Pivotal)
Run Your Java Code on Cloud Foundry - Andy Piper (Pivotal)
 

Recently uploaded

Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...
Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...
Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...
OECD Directorate for Financial and Enterprise Affairs
 
Getting started with Amazon Bedrock Studio and Control Tower
Getting started with Amazon Bedrock Studio and Control TowerGetting started with Amazon Bedrock Studio and Control Tower
Getting started with Amazon Bedrock Studio and Control Tower
Vladimir Samoylov
 
International Workshop on Artificial Intelligence in Software Testing
International Workshop on Artificial Intelligence in Software TestingInternational Workshop on Artificial Intelligence in Software Testing
International Workshop on Artificial Intelligence in Software Testing
Sebastiano Panichella
 
Media as a Mind Controlling Strategy In Old and Modern Era
Media as a Mind Controlling Strategy In Old and Modern EraMedia as a Mind Controlling Strategy In Old and Modern Era
Media as a Mind Controlling Strategy In Old and Modern Era
faizulhassanfaiz1670
 
Acorn Recovery: Restore IT infra within minutes
Acorn Recovery: Restore IT infra within minutesAcorn Recovery: Restore IT infra within minutes
Acorn Recovery: Restore IT infra within minutes
IP ServerOne
 
Eureka, I found it! - Special Libraries Association 2021 Presentation
Eureka, I found it! - Special Libraries Association 2021 PresentationEureka, I found it! - Special Libraries Association 2021 Presentation
Eureka, I found it! - Special Libraries Association 2021 Presentation
Access Innovations, Inc.
 
somanykidsbutsofewfathers-140705000023-phpapp02.pptx
somanykidsbutsofewfathers-140705000023-phpapp02.pptxsomanykidsbutsofewfathers-140705000023-phpapp02.pptx
somanykidsbutsofewfathers-140705000023-phpapp02.pptx
Howard Spence
 
Obesity causes and management and associated medical conditions
Obesity causes and management and associated medical conditionsObesity causes and management and associated medical conditions
Obesity causes and management and associated medical conditions
Faculty of Medicine And Health Sciences
 
Doctoral Symposium at the 17th IEEE International Conference on Software Test...
Doctoral Symposium at the 17th IEEE International Conference on Software Test...Doctoral Symposium at the 17th IEEE International Conference on Software Test...
Doctoral Symposium at the 17th IEEE International Conference on Software Test...
Sebastiano Panichella
 
Bitcoin Lightning wallet and tic-tac-toe game XOXO
Bitcoin Lightning wallet and tic-tac-toe game XOXOBitcoin Lightning wallet and tic-tac-toe game XOXO
Bitcoin Lightning wallet and tic-tac-toe game XOXO
Matjaž Lipuš
 
Gregory Harris' Civics Presentation.pptx
Gregory Harris' Civics Presentation.pptxGregory Harris' Civics Presentation.pptx
Gregory Harris' Civics Presentation.pptx
gharris9
 
0x01 - Newton's Third Law: Static vs. Dynamic Abusers
0x01 - Newton's Third Law:  Static vs. Dynamic Abusers0x01 - Newton's Third Law:  Static vs. Dynamic Abusers
0x01 - Newton's Third Law: Static vs. Dynamic Abusers
OWASP Beja
 
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdfBonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
khadija278284
 
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdfSupercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
Access Innovations, Inc.
 
Announcement of 18th IEEE International Conference on Software Testing, Verif...
Announcement of 18th IEEE International Conference on Software Testing, Verif...Announcement of 18th IEEE International Conference on Software Testing, Verif...
Announcement of 18th IEEE International Conference on Software Testing, Verif...
Sebastiano Panichella
 
María Carolina Martínez - eCommerce Day Colombia 2024
María Carolina Martínez - eCommerce Day Colombia 2024María Carolina Martínez - eCommerce Day Colombia 2024
María Carolina Martínez - eCommerce Day Colombia 2024
eCommerce Institute
 
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
Orkestra
 

Recently uploaded (17)

Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...
Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...
Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...
 
Getting started with Amazon Bedrock Studio and Control Tower
Getting started with Amazon Bedrock Studio and Control TowerGetting started with Amazon Bedrock Studio and Control Tower
Getting started with Amazon Bedrock Studio and Control Tower
 
International Workshop on Artificial Intelligence in Software Testing
International Workshop on Artificial Intelligence in Software TestingInternational Workshop on Artificial Intelligence in Software Testing
International Workshop on Artificial Intelligence in Software Testing
 
Media as a Mind Controlling Strategy In Old and Modern Era
Media as a Mind Controlling Strategy In Old and Modern EraMedia as a Mind Controlling Strategy In Old and Modern Era
Media as a Mind Controlling Strategy In Old and Modern Era
 
Acorn Recovery: Restore IT infra within minutes
Acorn Recovery: Restore IT infra within minutesAcorn Recovery: Restore IT infra within minutes
Acorn Recovery: Restore IT infra within minutes
 
Eureka, I found it! - Special Libraries Association 2021 Presentation
Eureka, I found it! - Special Libraries Association 2021 PresentationEureka, I found it! - Special Libraries Association 2021 Presentation
Eureka, I found it! - Special Libraries Association 2021 Presentation
 
somanykidsbutsofewfathers-140705000023-phpapp02.pptx
somanykidsbutsofewfathers-140705000023-phpapp02.pptxsomanykidsbutsofewfathers-140705000023-phpapp02.pptx
somanykidsbutsofewfathers-140705000023-phpapp02.pptx
 
Obesity causes and management and associated medical conditions
Obesity causes and management and associated medical conditionsObesity causes and management and associated medical conditions
Obesity causes and management and associated medical conditions
 
Doctoral Symposium at the 17th IEEE International Conference on Software Test...
Doctoral Symposium at the 17th IEEE International Conference on Software Test...Doctoral Symposium at the 17th IEEE International Conference on Software Test...
Doctoral Symposium at the 17th IEEE International Conference on Software Test...
 
Bitcoin Lightning wallet and tic-tac-toe game XOXO
Bitcoin Lightning wallet and tic-tac-toe game XOXOBitcoin Lightning wallet and tic-tac-toe game XOXO
Bitcoin Lightning wallet and tic-tac-toe game XOXO
 
Gregory Harris' Civics Presentation.pptx
Gregory Harris' Civics Presentation.pptxGregory Harris' Civics Presentation.pptx
Gregory Harris' Civics Presentation.pptx
 
0x01 - Newton's Third Law: Static vs. Dynamic Abusers
0x01 - Newton's Third Law:  Static vs. Dynamic Abusers0x01 - Newton's Third Law:  Static vs. Dynamic Abusers
0x01 - Newton's Third Law: Static vs. Dynamic Abusers
 
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdfBonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
 
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdfSupercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
 
Announcement of 18th IEEE International Conference on Software Testing, Verif...
Announcement of 18th IEEE International Conference on Software Testing, Verif...Announcement of 18th IEEE International Conference on Software Testing, Verif...
Announcement of 18th IEEE International Conference on Software Testing, Verif...
 
María Carolina Martínez - eCommerce Day Colombia 2024
María Carolina Martínez - eCommerce Day Colombia 2024María Carolina Martínez - eCommerce Day Colombia 2024
María Carolina Martínez - eCommerce Day Colombia 2024
 
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
 

20140626 awpug-plonely in austin

  • 1.
  • 2. Discussion 0 Who am I? 0 If Zope is a fish, what is Plone? 0 Pros & Cons of Plone 0 Prerequisites 0 Two ways to get started 0 The [parts] of Buildout 0 Content Types with Paster 0 Zope Page Templates (ZPT) 0 Resources
  • 3. Who am I? Work Senior Manager Decernis 6 years Plone Development & Project Management Education MA – Carnegie Mellon University MSc – University of Bologna Certified Scrum Master (CSM)
  • 4. If Zope is a fish, what is Plone?
  • 5. A very brief history 1995 – Zope Corp founded 1998 – Zope 2 released 1999 – Plone project begun to skin CMFDefault 2001 – Plone 1 released 2004 – Zope 3 presents a new paradigm 2004 – Plone 2 released 2005 – Five (Zope 2 + 3) released 2006 – Grok project started 2007 – Plone 3 released 2009 – Pyramid branches off 2010 – Zope Toolkit (ZTK) 2010 – Plone 4 released
  • 6. Who uses Plone? Governments/Agencies: Brazil, FBI, NASA, USAID… NGOs: Oxfam, Amnesty International, … Universities: Wisconsin, Penn State, Harvard SEAS… Companies: Discover Magazine, Novell…
  • 7. Pros & Cons • Intranets • Shared documents • Powerful workflow • Batteries included • Most secure CMS • Well-documented • Many developers • Application & Framework • Non-standard setup • High learning curve • Confusing stack • Themeing is hard • RAM hungry • Not broadly adopted
  • 8. Why I chose Plone 0 Security a major concern 0 Customized workflow major need 0 Stable code base 0 Used by peer organizations in regulatory sector 0 Batteries Included: User Management, Content Types, Workflow, Cacheing, Clustered Databases… 0 Ease of content type development 0 Django too bleeding edge in 2008 0 Community involvement
  • 9. Prerequisites 0 Internet Connection 0 Plone 4.2+ supports Python 2.7 0 PIL, GCC 0 virtualenv/virtuanevwrapper 0 Xcode (Mac) 0 Python Windows Extension (Windows) 0 Root access for production (VPS, Server, Laptop, etc.) Mac: export ARCHFLAGS="-Wno-error=unused-command- line-argument-hard-error-in-future"
  • 10. The Plone Stack Basic • Webserver • Zope Intermediate • Web Server • ZEO Clients • ZEO Server Advanced • Web Server • Proxy/Load Balancer • ZEO Clients • ZEO Server
  • 11. Two ways to get started Unified Installer Buildout
  • 12. Unified Installer is easy $ wget https://launchpad.net/plone/4.2/4.2.4/+downloa d/Plone-4.2.4-UnifiedInstaller-r3.tgz $ tar -zxvf Plone-4.2.4-UnifiedInstaller- r3.tgz $ cd Plone-4.2.4-UnifiedInstaller-r3 $ ./install.sh -- target=/Users/patrickwaldo/workspace/plone- demo --instance=awpug-test --static-lxml=yes standalone $ cd /Users/patrickwaldo/workspace/plone-demo $ ./bin/instance fg
  • 13. The [parts] of Buildout
  • 14. Getting started $ mkdir awpug-plone $ virtualenv --no-site-packages awpug- python $ cd awpug-plone $ wget http://svn.plone.org/svn/plone/buildout s/plone-coredev/branches/4.2/ bootstrap.py $ vi buildout.cfg
  • 15. The [parts] of Buildout [buildout] extends = http://dist.plone.org/release/4.2/versi ons.cfg parts += instance zopepy zopeskel eggs = Pillow develop = zcml =
  • 16. The [parts] of Buildout cont’d [instance] recipe = plone.recipe.zope2instance user = admin:admin eggs = Plone ${buildout:eggs} [zopepy] recipe = zc.recipe.egg eggs = ${buildout:eggs} interpreter = zopepy scripts = zopepy
  • 17. The [parts] of Buildout cont’d [zopeskel] recipe = zc.recipe.egg eggs = ZopeSkel Paste PasteDeploy PasteScript ${buildout:eggs}
  • 18. Bootstrapping it all together $ cd awpug-demo $ ../awpug-python/bin/python bootstrap.py $ ./bin/buildout $ ./bin/instance fg
  • 19. Default Content Types Page Folder Collection News Item Event File Image Link
  • 20. Content Types with Paster $ paster create --list-templates $ paster create –t archectype awpug.content $ cd awpug.content $ paster addcontent contenttype Remember to add your new package to your buildout!
  • 21. Let’s add a view $ cd src/awpug.content $ paster addcontent view
  • 22. Zope Page Templates (ZPT) tal:content = Fill tag with your content tal:replace = Replace tag with content tal:condition = If condition, then display tag tal:repeat = Iterate through an object tal:attributes = Fill a tag attribute (e.g. href)
  • 24. Thank you! Services and Systems to Help you Comply in Global Markets www.decernis.com