[Zope] ftp editing methods

Will Fife will@techfuel.com
Tue, 29 Jun 1999 10:04:20 -0700 (PDT)


Would it be possible to have a comment of some sort on the top line of the
file that would tell the server what type of file that it is?


On Tue, 29 Jun 1999, Michel Pelletier wrote:

> 
> 
> > -----Original Message-----
> > From: Stefan Bund [mailto:asbund@gmx.de]
> > Sent: Tuesday, June 29, 1999 4:14 AM
> > To: zope@zope.org
> > Subject: Re: [Zope] ftp editing methods
> > 
> > 
> > Amos@digicool.com (Amos Latteier) writes:
> > > This has been discussed before. There should probably be some better
> > > system for sniffing uploaded content and trying to figure 
> > out what sort
> > > of Zope object to create. This could be based on
> > > 
> > >   * file extensions
> > >   * http headers
> > >   * the content of the uploaded object
> > >   * Zope preferences
> > > 
> > > This is a fairly complex problem. For example, there should 
> > be some way
> > > for you to specify that uploaded files with a given file extension
> > > create instances of a given Z Class.
> > 
> > I've been thinking about it (on the user-level-side) too. I'm far to
> > new to Zope and Python to try to implement anything, but here are some
> > ideas:
> > 
> > Use 'site exec' to provide commands of the form 'If the file has
> > extension foo, it's a bla' or 'All files from now on should be
> > interpreted as bar'...
> > 
> 
> This is an interesting proposition, granted, automated FTP tools
> probably wouldn't understand to use the command set we set up.  For
> tools like Emacs however, we could hack the existing lisp code, and
> command line tools the user could just use the interface straight up.
> 
> > Another idea would be to make it possible using site exec to set a
> > flag, whether or not the files are up- and downloaded with or without
> > HTTP-Headers. Then it would be possible, to set a Content-Type
> > Header. And I would find it extremely useful, if I could set
> > Attributes in those headers too, because I often have documents, which
> > need a standard set of attributes and it would be nice, if it were
> > possible to edit them together with the content.
> > 
> 
> This is possible, I don't know how hard it would be to impliment.  It
> would also involve up coming up with a few of our own Content Types.
> 
> -Michel
> 
> > Just my 2c...
> > 
> > Stefan.
> > 
> > _______________________________________________
> > Zope maillist  -  Zope@zope.org
> > http://www.zope.org/mailman/listinfo/zope
> > 
> > (For developer-specific issues, use the companion list,
> > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
> > 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
> 
> (For developer-specific issues, use the companion list,
> zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
> 

--------========================================================--------
Phone: (949) 581-1700         Will Fife	 	 http://www.techfuel.com
Pager: (949) 451-9443      System Engineer             will@techfuel.com
--------========================================================--------