#28 — ATPhoto does not shows images stored in the FS

StateUnconfirmed
Version: 1.0-alpha1
AreaUser interface
Issue typeBug
SeverityMedium
Submitted byhvelarde
Submitted onJun 16, 2006
Responsible
Target release:
Return to tracker
Last modified on Jan 08, 2009 by Matthew Wilkes


we installed FileSystemStorage and set FS_STORAGE = True on ATPhoto's config.py. images are being stored on the FS but ATPhoto is not showing them neither individually nor in the album.

we have the following:

Plone 2.1.3,
Zope (Zope 2.8.6-final, python 2.3.5, linux2),
Python 2.3.5 (#1, Dec 28 2005, 20:09:10) [GCC 3.3.2 (OpenNA Linux 3.3.2-1)],
PIL 1.1.5

versions of ATPhoto and FileSystemStorage are from SVN as of today.
Attached:
atphoto.png — PNG image, 83Kb
Added byhvelardeonJun 21, 2006 01:58 AM
according to Raul Mota this is due to the lack of a docstring in the declaration of VirtualImage object in FileSystemStorage.py.

to fix it, include something like the following on it:

class VirtualImage(VirtualBinary, Image):
    """Image objects can be GIF, PNG or JPEG and have the same methods
    as File objects. Images also have a string representation that
    renders an HTML 'IMG' tag."""

    ...

more information: http://news.gmane.org/find-[…]0E.3020609%40americu.net%3e

now it is up and running :-)
Added byEncolpe DegouteonJun 21, 2006 07:27 AM
It's due to a bad implementation of the ImageField in Archetypes: It doesn't take care of the storage and presuppose we are all using AttributeStorage.
If you have time to fix it, do it.
Added byBertrand MathieuonJun 21, 2006 12:39 PM
I have added the docstrings as indicated in first comment. I have just commited the change in SVN. Could you do an "svn up" to check if it actually fix your bug?
Added byMichel Le CocqonJun 27, 2006 07:58 PM
I have exactly the same problem:

I install Zope2.9.3 with plone-2.1.2_1 under FreeBSD 6.0
I install also ATPhoto 1.0-alpha1 build 53 and filesystemstorage-2-5rc1

I put in (...)/Products/ATPhoto/config.py
#FS_STORAGE = False
FS_STORAGE = True

I change the path on the FileSystem storage Preferences for another Storage path and Backup path.

I had at the end of (...)/Products/FileSystemStorage/FileSystemStorage.py

class VirtualImage(VirtualBinary, Image):
    """Image objects can be GIF, PNG or JPEG and have the same methods
    as File objects. Images also have a string representation that
    renders an HTML 'IMG' tag."""

and now i try to find what's wrong in FileSystemStorage.py because i obtain this errro:

  Module Products.FileSystemStorage.FileSystemStorage, line 366, in getValue
TypeError: __init__() takes exactly 7 arguments (9 given)
Added byMichel Le CocqonJun 27, 2006 09:20 PM
which and where is the svn to take for testing ?
Added by(anonymous)onJun 28, 2006 07:02 AM
http://svn.plone.org/[…]/
Added byMichel Le CocqonJun 28, 2006 07:15 AM
It's ok now, thanks a lot

I just do:

svn co http://svn.plone.org/[…]/ subversion

and then reinstall FileSystemStorage it run now with FileSystemStorage 2.5RC1 CVS/SVN (UNRELEASED)

;-)

Add response

Please enter your response below