plone for python programmers

Download Plone for python programmers

If you can't read please download the document

Upload: dylan-jay

Post on 16-Apr-2017

3.295 views

Category:

Technology


0 download

TRANSCRIPT






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

[email protected]

Know plone? - we're hiring