Transcript
Page 1: Getting Dates with Plone - Plone Conference 2008

www.jazkarta.com 1 (888) 756-6348 2008 Plone Conference

Getting Dates withPlone

Aaron VanDerlip, Jazkarta.com2008 Plone Conference

Page 2: Getting Dates with Plone - Plone Conference 2008

www.jazkarta.com 1 (888) 756-6348 2008 Plone Conference

But what this is really about

Plone4ArtistsCalendarmostly

But there is a lot under the hood (or bonnet)

Page 3: Getting Dates with Plone - Plone Conference 2008

www.jazkarta.com 1 (888) 756-6348 2008 Plone Conference

BackgroundFirst there was Plone4Artists Calendar

it was a bit of monolith

Page 4: Getting Dates with Plone - Plone Conference 2008
Page 5: Getting Dates with Plone - Plone Conference 2008

Lennart Regebro == Hero

Page 6: Getting Dates with Plone - Plone Conference 2008

2008 Plone Conference www.jazkarta.com 1 (888) 756-6348

Overview

• dateable.chronos

• dateable.kalends

• p4a.subtyper

• p4a.plonecalendar

• p4a.event

Page 7: Getting Dates with Plone - Plone Conference 2008

Plone Eventsand Folders

p4a.plonecalendarExtends Plone with

the Kalends functionality

dateable.chronosThe user interface

dateable.kalendsDefines interfaces and functionality

p4a.ploneeventExtends the standardEvent with recurrence

Icalendar supportNot implemented yet

Page 8: Getting Dates with Plone - Plone Conference 2008

Mix-ins hard to work with

Page 9: Getting Dates with Plone - Plone Conference 2008

Separate concerns, common interface

Page 10: Getting Dates with Plone - Plone Conference 2008

2008 Plone Conference www.jazkarta.com 1 (888) 756-6348

dateable.chronos

• Provides calendar views

• Calls event providers to

• Reusable outside Plone4Artists

Page 11: Getting Dates with Plone - Plone Conference 2008

2008 Plone Conference www.jazkarta.com 1 (888) 756-6348

p4a.plonecalendar

• Registers Folder and Topic types to implement IPossibleCalenedar

• Provides hooks forimport/export of iCal feeds

• Implements the necessary kalends interface for events providers

Page 12: Getting Dates with Plone - Plone Conference 2008

Rocky Burt == Hero

Page 13: Getting Dates with Plone - Plone Conference 2008

2008 Plone Conference www.jazkarta.com 1 (888) 756-6348

p4a.subtyper

• Its slick

• Provides hooks to register type into the UI and the back end

• In a nutshell, a way to provide marker interfaces

Page 14: Getting Dates with Plone - Plone Conference 2008

2008 Plone Conference www.jazkarta.com 1 (888) 756-6348

p4a.event• Implements

dateable.kalends.IRecurringEvent

• Wraps the object using factory

• uses schemaextender to add Recurrence support to the Event type

Page 15: Getting Dates with Plone - Plone Conference 2008

Recurrence is cool

Page 16: Getting Dates with Plone - Plone Conference 2008

2008 Plone Conference www.jazkarta.com 1 (888) 756-6348

Let’s demo the tools

• Markup some types

• Import some external data

• Build a small app

Page 17: Getting Dates with Plone - Plone Conference 2008

Getting the date

Page 18: Getting Dates with Plone - Plone Conference 2008

2008 Plone Conference www.jazkarta.com 1 (888) 756-6348

To do

• improve iCal import/export

• microformats (coming real soon)

• test to be sure the above work

• UI

Page 20: Getting Dates with Plone - Plone Conference 2008

www.jazkarta.com 1 (888) 756-6348 2008 Plone Conference

Thanks!aaron (at) jazkarta.com

www.jazkarta.com