Skip to content. | Skip to navigation

Sections
Personal tools
What is this?
Hi, my name is Tom Lazar and I'm a Plone and Zope developer based in Berlin, Germany and this is my personal and professional (no big difference, really...) website.
 

Productivity

Filed Under:

The "Evil Daystar"[tm] is lurking outside!

So, the weather here in Berlin has finally turned into something resembling Summer and what happens? Right, I catch a nasty cold! That was Wednesday. Today - Saturday - after spending the past three days entirely indoors, in bed with drawn curtains and herbal tea with outside temparatures reaching 31 degress centrigrade I finally feel well enough to actually do something (as opposed to just being a vegetable).

Of course there are piles of real work[tm] that need to be done, but I be damned if I did any of that kind of stuff, while the rest of city is sitting in cafes or at lakes (or both) enjoying all those nice summer things that my current state of health makes me loath rather than cherish: sun, water, grilled food and alcoholic beverages…

So while the wife and kids are at the municipal pool I’ve decided to tackle a small mini project that I’ve had in my mind for a while: writing a script that automatcially creates a Plone Product Skeleton . You see, the best way to customize a plone site is to write a Product for it to which you then add your custom templates and what not - but the actual process of setting up such a product is rather tedious (and error prone - I don’t know how many times I’ve restarted a zope instance wondering why that damned new product of mine wouldn’t show up in portal_quickinstaller just because I missed a hyphen somewhere.)

So here you have it: written under the influence of Dolo-Dobendan a nice little convenience script that takes two arguements: the name of your product and the folder where it will create it (usually simply the Products folder of your Zope instance). Check out the details and the downloadable archive in the geek section.

just a test

Posted by Tom Lazar at May 29, 2005 07:10 PM
pls ignore ;-)

Ran with one error

Posted by ssteiner at May 30, 2005 04:49 PM
I ran the script and added 'happySite' to my Products directory.

Restarted Plone, installed happySite (logged in as admin).

The script ran with the following error:

2005-05-30 12:36:45
*** Unable to add directory views to portal_skins.Setting to TrueSetting to TrueSetting to TrueSetting to FalseSetting to FalseSetting to FalseSetting to FalseSetting to FalseSetting to TrueSetting to FalseSetting to FalseSetting to FalseSetting to FalseSuccessfully installed happySite.

yup, here, too ;-)

Posted by Tom Lazar at May 30, 2005 07:00 PM
yeah, same here - haven't quite figured out, what to do about it. Until now I still simply create new skins via the ZMI by copying the layer set of the Tableless layout and adding the necessary subfolders from my product.

I've tried doing this programmatically, as well, i.e. after installing product 'SpiffStuff' you'd automatically have a skin by that name, but never really wrapped my head around that one...

any ideas?

Never looked in here...guess it's time

Posted by ssteiner at May 30, 2005 07:15 PM
I've never used any of these functions in this area. As you have, I've always let ZMI handle this stuff. Guess we're going to have to go in there to find out what, exactly, they're doing and in what order. I'm not sure that you can just addDirectoryViews() without some other setup but I'm just guessing.

Time to research, I guess

Posted by ssteiner at May 30, 2005 07:16 PM
I've always used the ZMI for this stuff too. Obviously it's doing something different. What that might be is not so obvious.

Comment on comment

Posted by ssteiner at May 30, 2005 07:18 PM
Couldn't add a comment to your comment.

I guess we're just going to have to figure out what the ZMI is doing differently since there is, basically, no documentation for these functions.

Guess I could ;-)

Posted by ssteiner at May 30, 2005 07:19 PM
My comments came through a minute or two later.

let's face it...

Posted by Tom Lazar at May 31, 2005 11:18 AM
... plone's commenting capabilities blow chunks at the moment... :-(

one more hope for 2.1!

Plone 2.1

Posted by ssteiner at May 31, 2005 04:59 PM
Holding out many hopes for the next version. Some documentation'd be nice!