[Tramline-dev] Tramline with attramline/PloneTramline and Plone Archetypes ?

Benjamin Durth beedee at uni-koblenz.de
Fri Feb 9 17:01:09 CET 2007


Hi !

I'm trying to use tramline to store big files in the filesystem.

My configuration :
Plone 2.5,
Zope (Zope 2.8.7-final, python 2.4.3, linux2),
PIL 1.1.5
Apache 2.2-3

attramline (SVN)

By now I followed the instructions provided at
http://plone.org/events/sprints/snow-sprint-2007/tramline


At that point tramline still does nothing at all for me. I added a new
"typewithtramlinesupport"-type (the example type from the "attramline"
product) within Plone and uploaded various kinds of files. Tramline is not
invoked, neither "Tramline_file: ok" does appear in the HTTP header, nor 
are
there files stored in the repository on the file-system.

Only after installing the Product "PloneTramline" I'm able to upload 
various
files as an "typewithtramlinesupport" and tramline stores them on the
file-system. Shouldn't that be already by provided by "attramline"?

That wouldn't hurt too much, but when adding an Image file, say an .jpg, 
it is
not displayed instantly in the browser when calling the view-URL like 
it's the
case when you add an ATImage. Selecting the link to the image
("image_xy.jpg (JPEG image 0Kb)") results in no image being displayed 
and the
size is always 0KB.

An interesting fact : If you keep reloading (F5 or ALT+R) you will see the
image, then you don't, next time you can see it again etc (only in
Firefox/Camino).

Also : Trying to "save link as" suggests saving to TramlineFile.htm every
time.

So my questions are :

* How can ATImage and other Archetypes be used with tramline?
* How can certain file types (e.g., by MIME type) be excluded from the 
usage
  of tramline? Can it be made dependent on the file _size_? Or better 
still:
  can one install an arbitrary expression that says whether a file is to be
  'tramlined' or not?
* How can the real file size be displayed in Plone? It works with ATFile 
and
  after uploading binary files (e.g., PDF), but not with plain text or 
images.
* How can a tramline file be saved to the correct filename?
* Do you know of somebody who is using tramline successfully and could 
give me
  a few hints?

Thank you very much,
Greetings,
Torsten and Ben


More information about the Tramline-dev mailing list