Plone for python programmers
-
Upload
dylan-jay -
Category
Technology
-
view
3.296 -
download
0
Transcript of Plone for python programmers
for Python Programmers
Dylan [email protected]
Who am I
Building Plone sites for 6 years
Founder of PretaWeb, run SyPy
Specialising in infrastructure for website consolidation
CMS is Necessarily Complex
CMS PlayersPlugin Developer
Themer
Integrator
Administrator
Contributor
Viewer
App PlayersBackend
Frontend
Users
Why a CMS
Static htmlFrameworkCMS
Technical AuthorTechnical AuthorsNon-technical authors
Simple siteDynamic or AppLots of content
ConstructConstructCustomise
Easy to learnModerate learning curveHigh learning curve
YourselfYourselfFor someone else to edit
Why Plone
Flexible elevator goes all the way up
Python
Easy for Contributors
Secure
Accessible
Popular
Warning
Two ways to do everything
But I'll just teach just you one
Hello World in Plone
Let's cheat a little$ easy_install zopeskel$ cd src$ paster create --template plone3_theme
configure.zcml
hello.py
Hello World
hello.pt
hello.py
Anatomy of Plone URL - Traversal
Anatomy of a Page
Portlets, Viewlets, CSS/JS, Action Providers
Why not just hack templates?
Realms of customisation
Viewlets
HTML snippets
Defined in code
Registered in ZCML
Customise layout in Generic Setup XML
configure.zcml
viewlet.pt
Hello world on every page
Viewlet Manager
Installing viewlet layout
Layers
Plone inherently multisite
Layers tie your code/theme to a location
Most specific wins
Registering Resources
CSS
JS
Images
I use skins
Making a Content Type
Form you can add, edit, move, publish, search
Can be folderish
Can have object references
Dexterity a new way (Archetypes ok too)
Further Reading
Dexterityhttp://plone.org/products/dexterity
BooksProfessional Python Development - Martin Aspeli
(wait for Plone 4.0 edition)
Theming for Plone 3 - Veda Williams
Docs (work in progress)http://plone.org/documentation/manual/plone-community-developer-documentation
Thanks
Dylan Jay
http://www.pretaweb.com
twitter: djay75
Know plone? - we're hiring