[Zope] Editing DTML Methods with Emacs ?

Michel Pelletier michel@digicool.com
Tue, 7 Sep 1999 12:01:04 -0400


> -----Original Message-----
> From: flight@mathi.uni-heidelberg.de
> [mailto:flight@mathi.uni-heidelberg.de]
> Sent: Tuesday, September 07, 1999 10:55 AM
> To: Paul Everitt
> Cc: zope@zope.org
> Subject: Re: [Zope] Editing DTML Methods with Emacs ?
> 
 
> Perhaps the behavior of ZServer could be modified so that if 
> an ftp upload
> would replace an DTML method, then the new object still will be a DTML
> method. Currently, Zope seems to have some magic that makes a 
> guess that
> the upload it DTML text and then, there's a hidden default 
> that DTML text
> will be saved as an DTML document. Now if Zope simply would default to
> keeping the type of the object, if it already exists, editing via ftp
> would be much easier, not ?
> 

This is not Zope's fault, it's Emacs.  Emacs automaticly deletes a file
before it re-saves it, thus, ZServer saves the *new* file as a DTML
Document.

You would need to change the behavior of Emacs to fix this.

-Michel

> 	Gregor
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
> 
> (To receive general Zope announcements, see:
> http://www.zope.org/mailman/listinfo/zope-announce
> 
> For developer-specific issues, zope-dev@zope.org -
> http://www.zope.org/mailman/listinfo/zope-dev )
>