[Tramline-dev] Re: a Plone file-Field with tramline and JUpload ?
Matt Hamilton
matth at netsight.co.uk
Mon Jan 30 12:37:00 CET 2006
Dirk,
Good timing :) I am currently at the Snow Sprint in Austria with
Nate working on improving the Tramline support. I agree with you that
the best approach will be to set a specific header to only invoke
tramline for specific content types. Tramline itself does not currently
support this, but I am looking to add it in -- either in tramline or
perhaps as a conditional directive in the apache config.
Other items we are working on here:
* Getting ATAudio and other media types to be tramline aware
* Conditional invoking of the tramline filter for specific media types
* Using sha-1 hash for tramline filenames so as to be compatible
with Limewire 'magnet links'. This could allow content from Plone to
be served directly out onto the gnutella network
-Matt
Dirk Wallmeier wrote:
> Hi,
> we are also trying to build a file repository product for plone. We want
> to integrate tramline and JUpload with an AT file field.
> We managed to get it working up- und downloading files when I was stuck
> with the login-form problem and came to the tramline-dev list.
>
> Here I found out that others are working on the same idea as well. This
> is our approach:
>
> For the field widget we built a JUploadWidget. We used JUploadThread V2
> to be able to handle large files and modified it to redirect to the
> submit URL of the AT edit form, where the applet is embedded. On
> uploads, the applet calls a python script, that passes the file names in
> the tramline repo into the LinesField, which uses our widget.
>
> This all seem to work, but it is not very much tested.
>
> I think it would make sense to tell the tramline filter explicitely to
> be reponsible for an upload by setting a special header line. This
> prevents tramline from interfering with other products using form upload
> and only interfer with our special file field. I prefer this approach
> over the general file field patch suggested by Matt Hamilton in
> PloneTramline.
> I haven't tried out this yet, but I will try it now together with the
> patch for the login problem.
>
> I think we should share experiences try to supply a
> AT-Tramline-JUpload-FileField for general use?
>
--
Matt Hamilton matth at netsight.co.uk
Netsight Internet Solutions, Ltd. Business Vision on the Internet
http://www.netsight.co.uk +44 (0)117 9090901
Web Design | Zope/Plone Development & Consulting | Co-location | Hosting
More information about the Tramline-dev
mailing list