From shiju at pivotsys.com Tue Jan 2 06:09:29 2007 From: shiju at pivotsys.com (Shiju V.Joseph) Date: Mon, 01 Jan 2007 22:09:29 -0700 Subject: [Tramline-dev] Plone Tramline Integration issues Message-ID: <20070101220929.e1a84643288298bd7e8f248525a52676.685a37d6f4.wbe@email.secureserver.net> i have installed plonetramline (PloneTramline 0.1-alpha) as an add on product to plone.Platform specific information is as follows Plone version overview Plone 2.5.1, CMF-1.6.2, Zope (Zope 2.9.5-final, python 2.4.3, linux2), Five 1.3.7, Python 2.4.3 (#1, Oct 23 2006, 14:19:47) [GCC 4.1.1 20060525 (Red Hat 4.1.1-1)], PIL 1.1.5 But i am not getting any configuration options for tramline in plone >>is there any Apache/WebDAV config required for tramline >>is there any tramline service enabling required in plone >>is there any tramline proxy for uploading files >>or is it used in conjunction with JUpload confused a bit,any help Thanks shiju From faassen at startifact.com Wed Jan 3 11:46:28 2007 From: faassen at startifact.com (Martijn Faassen) Date: Wed, 3 Jan 2007 11:46:28 +0100 Subject: [Tramline-dev] AttributeError Message-ID: <8928d4e90701030246j3027cb95k62083f5886b51177@mail.gmail.com> Hi Chad, My apologies in the delay in responding; I recently made some changes to my mail settings and this list dropped through the cracks: > I'm new to this list, but I couldn't find a reference to this in the > archives. There appears to be a typo in core.py: > 312c312 > < self._f_close() > --- > > self._f.close() Good catch: I wonder why this wasn't triggered previously. I see this was already fixed previously. > Also, is there a theoretical limit to the number of files that > tramline can handle in a single POST? I'm having trouble right around > 300 or so files. I do not know of a theoretical limit, but then I'm not familiar enough with the limitations of HTTP and browsers to really say something very sensible here. Regards, Martijn From chad.maine at gmail.com Wed Jan 3 15:15:16 2007 From: chad.maine at gmail.com (Chad Maine) Date: Wed, 3 Jan 2007 09:15:16 -0500 Subject: [Tramline-dev] AttributeError In-Reply-To: <8928d4e90701030246j3027cb95k62083f5886b51177@mail.gmail.com> References: <8928d4e90701030246j3027cb95k62083f5886b51177@mail.gmail.com> Message-ID: <179e72170701030615q5a15a43ata43f41c9bd971643@mail.gmail.com> I was able to modify my django app to use a custom parser for tramline POST data, and I was able to upload over 1000 files in a single POST. This should be more than adequate for my needs. Thanks. On 1/3/07, Martijn Faassen wrote: > > Hi Chad, > > My apologies in the delay in responding; I recently made some changes > to my mail settings and this list dropped through the cracks: > > > I'm new to this list, but I couldn't find a reference to this in the > > archives. There appears to be a typo in core.py: > > > 312c312 > > < self._f_close() > > --- > > > self._f.close() > > Good catch: I wonder why this wasn't triggered previously. I see this > was already fixed previously. > > > Also, is there a theoretical limit to the number of files that > > tramline can handle in a single POST? I'm having trouble right around > > 300 or so files. > > I do not know of a theoretical limit, but then I'm not familiar enough > with the limitations of HTTP and browsers to really say something very > sensible here. > > Regards, > > Martijn > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://codespeak.net/pipermail/tramline-dev/attachments/20070103/aca19cc1/attachment.htm From faassen at startifact.com Wed Jan 3 17:10:07 2007 From: faassen at startifact.com (Martijn Faassen) Date: Wed, 3 Jan 2007 17:10:07 +0100 Subject: [Tramline-dev] AttributeError In-Reply-To: <179e72170701030615q5a15a43ata43f41c9bd971643@mail.gmail.com> References: <8928d4e90701030246j3027cb95k62083f5886b51177@mail.gmail.com> <179e72170701030615q5a15a43ata43f41c9bd971643@mail.gmail.com> Message-ID: <8928d4e90701030810r2f9bc39dq1eaa695fe0cb3e4a@mail.gmail.com> Hi there, On 1/3/07, Chad Maine wrote: > I was able to modify my django app to use a custom parser for tramline POST > data, and I was able to upload over 1000 files in a single POST. This > should be more than adequate for my needs. Quite impressive! I would like to hear more about how you're using Tramline with Django, by the way. It's nice to hear it's useful in Django too, since it was originally written with Zope 3 in mind. Regards, Martijn From faassen at startifact.com Tue Jan 9 19:01:03 2007 From: faassen at startifact.com (Martijn Faassen) Date: Tue, 9 Jan 2007 19:01:03 +0100 Subject: [Tramline-dev] AttributeError In-Reply-To: <179e72170701041319k6dda09adod713d208e3e42e9a@mail.gmail.com> References: <8928d4e90701030246j3027cb95k62083f5886b51177@mail.gmail.com> <179e72170701030615q5a15a43ata43f41c9bd971643@mail.gmail.com> <8928d4e90701030810r2f9bc39dq1eaa695fe0cb3e4a@mail.gmail.com> <179e72170701040832v26544a36t60acad5de142e549@mail.gmail.com> <8928d4e90701040925j211fb3feh289f0f6882c8ed18@mail.gmail.com> <179e72170701041319k6dda09adod713d208e3e42e9a@mail.gmail.com> Message-ID: <8928d4e90701091001i6076437bua889e51d23ab0375@mail.gmail.com> Hey, On 1/4/07, Chad Maine wrote: > The only thing missing from the process for me is post-upload management of > the files. Especially if they reside on a separate server (as will likely > be the case for me). I guess that's left as an exercise for the developer. > I'll probably build an xml-rpc interface to do this. Yes, it's mostly left as an exercise for the developer. I have been thinking about an API for housekeeping, but I've also heard the argument made that if it's on the same server why put a layer over the Python filesystem APIs in the first place? If it's on a different server a well-defined API might be more valuable, and we could of course ship with a default 'local' implementation. XML-RPC would need to be optional, however. Regards, Martijn From kitblake at infrae.com Mon Jan 22 16:10:51 2007 From: kitblake at infrae.com (Kit BLAKE) Date: Mon, 22 Jan 2007 16:10:51 +0100 Subject: [Tramline-dev] Tramline 0.5.1 Released Message-ID: <45B4D3FB.5000600@infrae.com> Tramline 0.5.1 Released 22 january 2007 ? Infrae has just released version 0.5.1 of Tramline. This version has improved installation and configuration, an example of setting up Tramline with Zope3, and various bug fixes. What is Tramline? Tramline is an upload and download accelerator that plugs into Apache using mod_python. Its aim is to make downloading and uploading large media to an application server easy and fast, without overloading the application server with large amounts of binary data. Only a small configuration change in Apache is necessary to enable Tramline. The application server remains in complete control over security, page and form rendering, and everything else. Minimal changes are necessary to any application to enable it to work with Tramline; in fact it?s just setting two response headers in a couple places in the code. Changes in this version * Easily installable using setuptools * Easier configuration through the Apache config files * Includes an example for setting up Tramline together with Zope 3 * Various bugfixes. Thanks to Embyr Thomas for his multipart/form-data fix, and to Chad Maine (who was able to upload over 1000 files in a single POST to a Django app!). Download Tramline 0.5.1 can be downloaded from: http://infrae.com/download/tramline. Credit We would like to thank the people at the University of Bedfordshire for making Tramline possible. Contact FMI contact Daniel Nouri, daniel at infrae com, +31 10 243 7051. -- ?Kit BLAKE ? Infrae ? http://infrae.com/ + 31 10 243 7051 Hoevestraat 10 ? 3033 GC ? Rotterdam + The Netherlands Contact = http://xri.net/=kitblake From natea at jazkarta.com Sun Jan 28 18:29:02 2007 From: natea at jazkarta.com (Nate Aune) Date: Sun, 28 Jan 2007 18:29:02 +0100 Subject: [Tramline-dev] Tramline with Plone Message-ID: <9a89227c0701280929p1d5788dahe3254100572fc330@mail.gmail.com> There are several of us at the Snow Sprint who are trying to get Tramline working with Plone. I've started a howto here: http://plone.org/events/sprints/snow-sprint-2007/tramline/ Are we missing any steps? I uninstalled attramline and installed PloneTramline, but the same problem occurs when trying to upload a file. When I try to upload a file, the following error occurs in Apache's error_log: [Sun Jan 28 17:04:54 2007] [error] [client 127.0.0.1] tramline_input tramline.core::inputfilter: Traceback (most recent call last):, referer: http://localhost:81/Members/admin/portal_factory/File/file.2007-01-28.2850597567/edit [Sun Jan 28 17:04:54 2007] [error] [client 127.0.0.1] tramline_input tramline.core::inputfilter: File "/opt/local/lib/python2.4/site-packages/mod_python/apache.py", line 187, in FilterDispatch\n object(filter), referer: http://localhost:81/Members/admin/portal_factory/File/file.2007-01-28.2850597567/edit [Sun Jan 28 17:04:54 2007] [error] [client 127.0.0.1] tramline_input tramline.core::inputfilter: File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/tramline-0.5.1-py2.4.egg/tramline/core.py", line 76, in inputfilter\n s = filter.read(), referer: http://localhost:81/Members/admin/portal_factory/File/file.2007-01-28.2850597567/edit [Sun Jan 28 17:04:54 2007] [error] [client 127.0.0.1] tramline_input tramline.core::inputfilter: IOError: Input filter read error, referer: http://localhost:81/Members/admin/portal_factory/File/file.2007-01-28.2850597567/edit Since it seems to be an IOError, I tried changing the path to something that I know the Apache user should be able to write to. I have tried setting in httpd.conf: PythonOption tramline_path /tmp and in PloneTramline/filefield_patch.py: REPOSITORY_PATH = "/tmp" thanks for any help you can offer. Nate -- Nate Aune - natea at jazkarta.com http://www.jazkarta.com Plone solutions, consulting and development From daniel at infrae.com Mon Jan 29 16:46:33 2007 From: daniel at infrae.com (Daniel Nouri) Date: Mon, 29 Jan 2007 16:46:33 +0100 Subject: [Tramline-dev] Tramline with Plone In-Reply-To: <9a89227c0701280929p1d5788dahe3254100572fc330@mail.gmail.com> References: <9a89227c0701280929p1d5788dahe3254100572fc330@mail.gmail.com> Message-ID: <177f8ded0701290746x1f74f37dx8c98b01b9b53a31b@mail.gmail.com> On 1/28/07, Nate Aune wrote: > There are several of us at the Snow Sprint who are trying to get > Tramline working with Plone. I've started a howto here: > > http://plone.org/events/sprints/snow-sprint-2007/tramline/ > > Are we missing any steps? > > I uninstalled attramline and installed PloneTramline, but the same > problem occurs when trying to upload a file. When I try to upload a > file, the following error occurs in Apache's error_log: Hi Nate! I wish I could reproduce your error, but I can't. I just tried tramline 0.5.1 with Apache/2.2.3 and the Plone 2.5 branch out with PloneTramline and it worked fine for me. The installation steps in that URL seem good, too. Daniel From natea at jazkarta.com Mon Jan 29 16:52:32 2007 From: natea at jazkarta.com (Nate Aune) Date: Mon, 29 Jan 2007 16:52:32 +0100 Subject: [Tramline-dev] Tramline with Plone In-Reply-To: <177f8ded0701290746x1f74f37dx8c98b01b9b53a31b@mail.gmail.com> References: <9a89227c0701280929p1d5788dahe3254100572fc330@mail.gmail.com> <177f8ded0701290746x1f74f37dx8c98b01b9b53a31b@mail.gmail.com> Message-ID: <9a89227c0701290752r4befdc67hda14787303698322@mail.gmail.com> > I wish I could reproduce your error, but I can't. I just tried > tramline 0.5.1 with Apache/2.2.3 and the Plone 2.5 branch out with > PloneTramline and it worked fine for me. I'm using Plone 2.5.2 tarball. Could that make a difference if I'm not using the 2.5 branch? Did you patch apache.py in mod_python? does one need to do anything after making this patch? recompile mod_python or apache? what did you set in httpd.conf for: PythonOption tramline_path also, what did you set in PloneTramline/filefield_patch.py for: REPOSITORY_PATH thanks, Nate -- Nate Aune - natea at jazkarta.com http://www.jazkarta.com Plone solutions, consulting and development From daniel at infrae.com Mon Jan 29 16:59:38 2007 From: daniel at infrae.com (Daniel Nouri) Date: Mon, 29 Jan 2007 16:59:38 +0100 Subject: [Tramline-dev] Tramline with Plone In-Reply-To: <9a89227c0701290752r4befdc67hda14787303698322@mail.gmail.com> References: <9a89227c0701280929p1d5788dahe3254100572fc330@mail.gmail.com> <177f8ded0701290746x1f74f37dx8c98b01b9b53a31b@mail.gmail.com> <9a89227c0701290752r4befdc67hda14787303698322@mail.gmail.com> Message-ID: <45BE19EA.2020003@infrae.com> Nate Aune wrote: >> I wish I could reproduce your error, but I can't. I just tried >> tramline 0.5.1 with Apache/2.2.3 and the Plone 2.5 branch out with >> PloneTramline and it worked fine for me. > > I'm using Plone 2.5.2 tarball. Could that make a difference if I'm not > using the 2.5 branch? > > Did you patch apache.py in mod_python? does one need to do anything > after making this patch? recompile mod_python or apache? Yes I did comment that flush() line, and no, you don't need to recompile anything after that. Make sure though that this is the version of apache.py that your Apache is actually seeing, i.e. not the version that you downloaded (and copied during installation). > what did you set in httpd.conf for: > > PythonOption tramline_path > > also, what did you set in PloneTramline/filefield_patch.py for: > > REPOSITORY_PATH In httpd.conf I have "PythonOption tramline_path /tmp/tramline-test/". I didn't touch the string in "filefield_patch.py". The path in the latter file seems to only affect get_size(). -- Daniel Nouri Infrae ? http://infrae.com