[Grok-dev] Re: collective.namedfile + blob

mictlan tecutli mictlan.tecutli.0 at gmail.com
Thu Mar 27 07:52:22 EDT 2008

hummm. i wonder if i´m missing something. although the form, using megrok.form.fields.BlobFile field works fine, and though i can navigate to the objects created through the form, blobs don´t appear in my blob directory. my assumption, becuase i can navigate to the uploaded object and download the file, is that these files are still bieng stored in the zobd. 

since the form works (that is the data gets uploaded, and i can see it in the DisplayForm), i assume that the problem isn´t in my implementation. 

i have edited zope.conf according to these indications:

when i restart zope, i get the following information, which appears to indicate that blobs are working:

2008-03-27T05:23:46 INFO ZODB.blob (8229) Blob cache directory '.../parts/data/blobs' does not exist. Created new directory.
2008-03-27T05:23:46 WARNING ZODB.blob (8229) Blob
dir .../parts/data/blobs has insecure mode setting

i don´t think that "insecure mode setting"  would keep the blobs from getting written, as i´m running zope with the same user that owns the blob folder. but just to be sure i make the blob folder universally writable. but still no dice. 

am i missing something obvious?

thanks for the hard work on getting blob support in megrok.form

any advise is much appreciated

On Thu, 20 Mar 2008 19:32:52 +0100
Martijn Faassen <faassen at startifact.com> wrote:

> Dirceu Pereira Tiegs wrote:
> > On Wed, Mar 19, 2008 at 6:59 PM, Dirceu Pereira Tiegs
> > <dirceutiegs at gmail.com> wrote:
> >>  Almost done:
> >>
> >>  http://pypi.python.org/pypi/collective.namedblobfile/0.1
> >>  http://svn.zope.org/megrok.form/branches/collective.namedblobfile_support
> > 
> > Done. megrok.form 0.2 now have two new fields: BlobFile and BlobImage.
> Awesome! I think the megrok.form work fits Grok very well - we connect 
> the pieces of Zope so that our users don't have to anymore. I know where 
> I'll look first when I need to upload large files with Grok!
> Regards,
> Martijn
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> http://mail.zope.org/mailman/listinfo/grok-dev

More information about the Grok-dev mailing list