[Zope] uploading, overwriting, and editing file (DTML Document)

Andy McKay andy@agmweb.ca
Wed, 31 Jul 2002 11:58:07 -0700


> I can have them upload a DTMLDocument as a Zope object (using a
> form and DTML method, but cannot overwrite an already existing
> object of same name and don't know how to access the object to edit
> it as needed

Get the object and then edit it using the manage_edit function of a
DTMLDocument

--
  Andy McKay
  @gmweb Consulting
  http://www.agmweb.ca

----- Original Message -----
From: "Tom Germaine" <tgermaine@Upei.CA>
To: <zope@zope.org>
Sent: Wednesday, July 31, 2002 7:16 AM
Subject: [Zope] uploading, overwriting, and editing file (DTML Document)


> Good-day All:
>
> I would like to delegate certain users rights to upload an html file (to
> become a DTML Document), overwriting an existing file of same
> name and then run a script to edit the file, substituting dtml tags for
> lines at beginning and end of file.  I am confused as to the best way to
> go about it.
>
> I can have them upload a DTMLDocument as a Zope object (using a
> form and DTML method, but cannot overwrite an already existing
> object of same name and don't know how to access the object to edit
> it as needed.  My guess is that I should write an external script to do
> the editing, but am unsure of whether or not to upload to local file
> system instead of Zope object and how to access file system files as
> DTML Documents.
>
> I have reviewed the FAQ on product LocalFS, but am unsure if I need
> it, or if displaying DTML Documents stored in file system is the way
> to go.
>
> Any advice would be appreciated.
>
> Tom
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>