Re: [Zope3-Users] demostorage does not support blobs

2008-04-20 Thread Christophe Combelles

Benji York a écrit :

On Sat, Apr 19, 2008 at 9:00 PM, Christophe Combelles [EMAIL PROTECTED] wrote:

Hello,

 I can successfully upload a zope.app.file.File with testbrowser,
 but with zope.file.file.File (blob-based), I get this error 500:


add browser.handleErrors = False just before you make the call that
raises the exception and you'll see what the underlying exception, not
the 500 the publisher generates.


Ah ok thanks:

Unsupported: Storing Blobs in ZODB.DemoStorage.DemoStorage instance at 
0xb6fb8dcc is not supported.


___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] demostorage does not support blobs

2008-04-20 Thread Benji York
On Sun, Apr 20, 2008 at 4:52 AM, Christophe Combelles [EMAIL PROTECTED] wrote:
  Unsupported: Storing Blobs in ZODB.DemoStorage.DemoStorage instance at
 0xb6fb8dcc is not supported.

I don't know if DemoStorage is supposed to work or not, but as a work-around
you can try zc.demostorage2 (http://pypi.python.org/pypi/zc.demostorage2).
-- 
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] demostorage does not support blobs

2008-04-20 Thread Gary Poster


On Apr 20, 2008, at 7:13 AM, Benji York wrote:
On Sun, Apr 20, 2008 at 4:52 AM, Christophe Combelles  
[EMAIL PROTECTED] wrote:
Unsupported: Storing Blobs in ZODB.DemoStorage.DemoStorage  
instance at

0xb6fb8dcc is not supported.


I don't know if DemoStorage is supposed to work or not, but as a  
work-around
you can try zc.demostorage2 (http://pypi.python.org/pypi/zc.demostorage2 
).


Naah, don't think it will help.  BlobStorage is a storage proxy,  
expected to wrap around another storage.  Try making a temp directory  
for the blob storage, setting up a blob storage around the demo  
storage, and then cleaning up the temp dir at the end of the  
test.  ...or something else, depending on your use case/testing  
needs. :-)


Gary

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] demostorage does not support blobs

2008-04-20 Thread Christophe Combelles

Gary Poster a écrit :


On Apr 20, 2008, at 7:13 AM, Benji York wrote:
On Sun, Apr 20, 2008 at 4:52 AM, Christophe Combelles [EMAIL PROTECTED] 
wrote:

Unsupported: Storing Blobs in ZODB.DemoStorage.DemoStorage instance at
0xb6fb8dcc is not supported.


I don't know if DemoStorage is supposed to work or not, but as a 
work-around
you can try zc.demostorage2 
(http://pypi.python.org/pypi/zc.demostorage2).


Naah, don't think it will help.  BlobStorage is a storage proxy, 
expected to wrap around another storage.  Try making a temp directory 
for the blob storage, setting up a blob storage around the demo storage, 
and then cleaning up the temp dir at the end of the test.  ...or 
something else, depending on your use case/testing needs. :-)


So I believe the blobstorage should be handled by zope.app.testing.functional
I've added it as https://bugs.launchpad.net/zope3/+bug/219845

Christophe



Gary





___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users