[Zope] Editing DTML Methods with Emacs ?

Michel Pelletier michel@digicool.com
Wed, 8 Sep 1999 11:00:32 -0400


You wanna write the Editing DTML Methods with XEmacs How-To?

-Michel

> -----Original Message-----
> From: Doug McNaught [mailto:doug@mcnaught.org]
> Sent: Tuesday, September 07, 1999 10:48 PM
> To: zope@zope.org
> Subject: Re: [Zope] Editing DTML Methods with Emacs ?
> 
> 
> Michel Pelletier <michel@digicool.com> writes:
> 
> > The problem is XEmacs.  It first deletes the file and saves a backup
> > '~', and then an original.  Because it deletes the origninal object
> > instead of overwriting it, Zope assumes that the *new* file 
> is to be a
> > document.  I bet a gazzillion dollars that there is some 
> lisp variable
> > somewhere in EFS to disable this behavior.
> 
> The variable is 'efs-make-backup-files', which is a list of host types
> (efs has a concept of host type and will do different things when
> talking to VMS, say, than when talking to Unix) on which to make
> backup files when saving.  If you set it to 'nil' efs will never make
> a backup file on a remote machine.
> 
> If you want to make backup files on 'real' ftp servers but not on
> Zope's, this could be a problem, as 'efs-process-host-type' is "unix"
> when connected to a Zope server, just as it is with normal 
> systems.  I 
> don't know whether there might be a way to make Zope recognizable to
> efs. 
> 
> I did do a test with setting 'efs-make-backup-files' to nil and doing
> a few efs edits through localhost (standard ftp server).  The inode
> number of the file in question did not change, indicating that efs
> just did a 'put' when saving the file, rather than deleting and
> recreating.  Thus from Michel's comments, Zope should do the Right
> Thing and preserve the document type if you nil out the above
> variable.
> 
> Hope this helps.
> 
> -Doug
> -- 
> Doug McNaught       doug@mcnaught.org     
http://www.mcnaught.org/~doug

_______________________________________________
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 )