Skip to content

Lawtec

Sections
Personal tools
You are here: Home Members antonh's Home Use the source, Luke
Document Actions

Use the source, Luke

by antonh last modified 07-Sep-06 11:48 AM

I always used to be scared of the Zope source code. So I used to spend hours scouring the Internet trying to find documentation, similar questions on mailing lists and so on. But of course there was always a gap in my knowledge, things I couldn't find an answer to no matter how hard I looked. But recently, I've been getting way more comfortable with source code...

I don't know when it started. But I noticed the other day when I wanted to create a pay-for-access plone site, the first thing I thought of was to open up the MembershipTool.py file in CMFPlone and have a look around. And it all seemed pretty easy. I knew that I needed to subclass the MembershipTool and just define the functions I wanted to override. It certainly makes life easier.

So to all those people out there finding the Zope learning curve pretty steep, don't be afraid. Particularly good starting point is to look at how CMFPlone sits over the top of CMFCore and CMFDefault. Gives you a feel for what you can do yourself. Its also useful to look in other products that have the feature you want. You may even be able to cut and paste the code straight in.

This goes for filesystem code, python scripts, page templates and so on. Don't be shy, use the source, Luke :)
 


This site conforms to the following standards: