[Zope] Python product - defaults from filesystem files

vsbabu@vsbabu.org vsbabu@vsbabu.org
Mon, 29 Jul 2002 18:10:28 -0400


Hi,

In a python product I'm developing, I'd like to provide the ability to customizetemplates - like CMF skins. I have default page templates in the product as files in the filesystem. When people want to customize, I'd like to read the template from filesystem and make a corresponding instance in ZODB.

Is there any elegant way to do this? File System directory view? My initial thinking was to just read the file contents and create the object - but I want to see if there is any already accepted way...

This is for a non-CMF site.

Thanks in advance
Satheesh Babu
http://vsbabu.org/