Archive for March, 2005

ok as a last, but realistic, resort

Friday, March 4th, 2005

I *could* use ASP to generate the python needed to script each and every blog entry in one long script, a bit like a mysql dump file. inelegant but would work…..

So many options, a bit of vagueness and so little spare time

Thursday, March 3rd, 2005

Over the past week or so I have made a bit more progress with the idea of migrating this blog to Quills. I now have a few key pieces of the puzzle solved.

Sitting on the filesystem is a python script that I wrote a while back that, given the name of one of the blogworksXML archive files, will iterate through it and print the title, text and date of each blog entry found within. The intention is to develop that so that it will iterate through the whole directory, one file at a time and call some kind of "create WeblogEntry" method for each item.

In a skin script I have an experimental routine which will create a WeblogEntry in the drafts folder - I have found that if you set the effective date to the original publish date and publish the draft, Quills will take care of creating the Archives for you (something I was having trouble scripting, so was well chuffed to discover this)

Once these are developed sufficiently, I need to marry them together somehow, and this is where my current "hanging on the slippery underside of the Z-shaped learning curve" level of understanding is letting me down. From the filesystem based script, the only way I know how to communicate with Plone is via the zope debug mode. From the skin script, I have no idea how to reference the filesystem based xml. I suppose I could load the xml into the plone site, but will I be able to use the sax stuff from a zodb based skin script to parse it? I know "external methods" exist, but no idea how to use/ create one. You get the idea.

On top of this I know there are other ways to do this - the Marshall Product for example, sound like it could work, but not sure where to start. I also know it would be best written as a Product, even if I am the only person in the world with a requirement for a Plone Product to migrate from BlogworksXML to quills. Good practice though.