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

State Unconfirmed
Version: 1.0-alpha1
Area User interface
Issue type Bug
Severity Medium
Submitted by hvelarde
Submitted on Jun 16, 2006
Responsible
Target release:


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:
PNG image icon atphoto.png — PNG image, 83 kB (85805 bytes)
Added by hvelarde on Jun 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 by Encolpe Degoute on Jun 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 by Bertrand Mathieu on Jun 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 by Michel Le Cocq on Jun 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 by Michel Le Cocq on Jun 27, 2006 09:20 PM
which and where is the svn to take for testing ?
Added by (anonymous) on Jun 28, 2006 07:02 AM
http://svn.plone.org/[…]/
Added by Michel Le Cocq on Jun 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)

;-)

No responses can be added.