[Zope] Within Zope equivalent of open() function.
Paul Winkler
pw_lists@slinkp.com
Wed, 6 Nov 2002 13:23:41 -0800
On Wed, Nov 06, 2002 at 04:28:58PM -0400, Alec Munro wrote:
> Hi all,
> I want to provide a web based interface to editing stylesheets. I want
> these stylesheets to be contained within Zope. Is there something like
> Python's open() function that I can use?
Hi Alec. Why does your name sound familiar to me?
comp.lang.python maybe?
You can either
1) use a dtml document or method for the stylesheet
(they will happily contain any text content)
or
2) put the stylesheet on the filesystem , and create
an ExtFile that points to it, or a LocalFS that points to
its directory. (ExtFile comes with zope, but LocalFS does not.)
either way, you will be able to edit them through-the-web.
--
Paul Winkler
http://www.slinkp.com
"Welcome to Muppet Labs, where the future is made - today!"