|
From: Sidnei da S. <si...@en...> - 2006-12-16 17:40:15
|
Anyone has played with Blob Support on the ZODB? It looks like it should be possible to get that to work with Archetypes FileField. -- Sidnei da Silva Enfold Systems http://enfoldsystems.com Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214 |
|
From: Alexander L. <li...@pl...> - 2006-12-16 22:30:14
|
On Sat, 16 Dec 2006 09:40:13 -0800, Sidnei da Silva
<si...@en...> wrote:
> Anyone has played with Blob Support on the ZODB? It looks like it
> should be possible to get that to work with Archetypes FileField.
Which Blob support? The one scheduled for Zope 2.11?
--
_____________________________________________________________________
Alexander Limi · Chief Architect · Plone Solutions · Norway
Consulting · Training · Development · http://www.plonesolutions.com
_____________________________________________________________________
Plone Co-Founder · http://plone.org · Connecting Content
Plone Foundation · http://plone.org/foundation · Protecting Plone
|
|
From: Justizin <jus...@si...> - 2006-12-17 19:31:33
|
On 12/16/06, Sidnei da Silva <si...@en...> wrote: > Anyone has played with Blob Support on the ZODB? It looks like it > should be possible to get that to work with Archetypes FileField. > Didn't Enfold write BlobFile which has a BlobFileField? I've been working to separate something out of AttachmentField trunk called FlexStorage, which was designed to allow the migration of all AttachmentField contents to FileSystemStorage. It looks like it may be modular enough to work as well with ExternalStorage, BlobStorage, or what-have-you, as it ever did or does with FSS. I am really impressed with what I hear about blobstorage, but I am concerned that it is more complex to map interaction with other applications via the filesystem because it stores via UIDs vs. ExternalStorage, which uses the actual filename, but does not support renaming, or at least products using it don't seem to. I know the guys at UofL have some hacks for either ES or blobstorage which help with this, we should encourage them to share what they have so that we may improve upon it. It seems logical that you could maintain a set of symlinks in parallel, and if all goes to hell, you could have a button in the zmi which nukes that structure and re-creates, much like recataloguing. -- Justizin, Independent Interactivity Architect ACM SIGGRAPH SysMgr, Reporter http://www.siggraph.org/ |
|
From: Justizin <jus...@si...> - 2006-12-17 19:32:12
|
On 12/17/06, Justizin <jus...@si...> wrote: > applications via the filesystem because it stores via UIDs vs. OIDs.. It's been a long week-end. ;) -- Justizin, Independent Interactivity Architect ACM SIGGRAPH SysMgr, Reporter http://www.siggraph.org/ |
|
From: Rocky B. <ro...@se...> - 2006-12-18 17:19:03
|
On Sun, 2006-17-12 at 13:31 -0600, Justizin wrote: > On 12/16/06, Sidnei da Silva <sidnei-/awGbKECNgO/3pe1ocb+swC/G2K4zDHf@pub= lic.gmane.org> wrote: > > Anyone has played with Blob Support on the ZODB? It looks like it > > should be possible to get that to work with Archetypes FileField. > > >=20 > Didn't Enfold write BlobFile which has a BlobFileField? The BlobFile plone product is based on the blob product by Chris McDonough. This blob support is not affiliated with the built-in blob support for the zodb that was worked. - Rocky --=20 Rocky Burt ServerZen Software -- http://www.serverzen.com News About The Server (blog) -- http://www.serverzen.net |
|
From: Justizin <jus...@si...> - 2006-12-18 17:25:51
|
On 12/18/06, Rocky Burt <ro...@se...> wrote: > On Sun, 2006-17-12 at 13:31 -0600, Justizin wrote: > > On 12/16/06, Sidnei da Silva <sidnei-/awGbKECNgO/3pe1ocb+swC/G2K...@pu...> wrote: > > > Anyone has played with Blob Support on the ZODB? It looks like it > > > should be possible to get that to work with Archetypes FileField. > > > > > > > Didn't Enfold write BlobFile which has a BlobFileField? > > The BlobFile plone product is based on the blob product by Chris > McDonough. This blob support is not affiliated with the built-in blob > support for the zodb that was worked. > Really? I was under the impression these were the same. Any handy URLs you'd like to share? -- Justizin, Independent Interactivity Architect ACM SIGGRAPH SysMgr, Reporter http://www.siggraph.org/ |
|
From: Rocky B. <ro...@se...> - 2006-12-18 17:33:43
|
On Mon, 2006-18-12 at 11:25 -0600, Justizin wrote: > On 12/18/06, Rocky Burt <ro...@se...> w= rote: > > On Sun, 2006-17-12 at 13:31 -0600, Justizin wrote: > > > On 12/16/06, Sidnei da Silva <sidnei-/awGbKECNgO/3pe1ocb+swC/G2K4zDHf= @public.gmane.org> wrote: > > > > Anyone has played with Blob Support on the ZODB? It looks like it > > > > should be possible to get that to work with Archetypes FileField. > > > > > > > > > > Didn't Enfold write BlobFile which has a BlobFileField? > > > > The BlobFile plone product is based on the blob product by Chris > > McDonough. This blob support is not affiliated with the built-in blob > > support for the zodb that was worked. > > >=20 > Really? I was under the impression these were the same. Any handy > URLs you'd like to share? No url ... but as far as I understand it... the blob product by Chris merely introduces an OFS.Image.File replacement that happens to store it's content on the file system. Whereas the zodb blob support actually introduces new api functions so that binary content going through the zodb actually ends up on the filesystem. - Rocky --=20 Rocky Burt ServerZen Software -- http://www.serverzen.com News About The Server (blog) -- http://www.serverzen.net |
|
From: Sidnei da S. <si...@en...> - 2006-12-18 17:53:44
|
Re-sending ---------- Forwarded message ---------- From: Sidnei da Silva <si...@en...> Date: Dec 18, 2006 3:36 PM Subject: Re: [Plone-developers] ZODB Blob Support To: Justizin <jus...@si...> Cc: plone-developers <plo...@li...> On 12/17/06, Justizin <jus...@si...> wrote: > I am really impressed with what I hear about blobstorage, but I am > concerned that it is more complex to map interaction with other > applications via the filesystem because it stores via UIDs vs. > ExternalStorage, which uses the actual filename, but does not support > renaming, or at least products using it don't seem to. There are certainly tradeoffs. You can get: - Real filenames, with/without renaming support, with/without 'versioning' support, no ZEO support at all. Or you can get: - Gibberish filenames, with renaming support, with 'versioning' support, with ZEO support The new blob implementation in ZODB trunk does give you the latter. I believe that a blob implementation that does not work with ZEO is bound to fail. That's why I like this one and I'm willing to support it. There could be a layer on top of this, external to Zope, that given a OID would give you the 'current file'. Then you don't need a real filename. My understanding is that 'real filename' is overrated. Since you only need this for serving through say, Apache, you could have a simple script that would map oid -> filename -> oid. If, OTOH, you need to write to the file behind Zope then you're asking for trouble. -- Sidnei da Silva Enfold Systems http://enfoldsystems.com Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214 -- Sidnei da Silva Enfold Systems http://enfoldsystems.com Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214 |
|
From: Sidnei da S. <si...@en...> - 2006-12-18 17:54:03
|
Re-sending. ---------- Forwarded message ---------- From: Sidnei da Silva <si...@en...> Date: Dec 18, 2006 3:39 PM Subject: Re: [Plone-developers] ZODB Blob Support To: Rocky Burt <ro...@se...> Cc: plo...@li... > > Really? I was under the impression these were the same. Any handy > > URLs you'd like to share? There are some very nice doctests: http://svn.zope.org/ZODB/trunk/src/ZODB/Blobs/tests/ > No url ... but as far as I understand it... the blob product by Chris > merely introduces an OFS.Image.File replacement that happens to store > it's content on the file system. That's a reasonable description yes. > Whereas the zodb blob support actually > introduces new api functions so that binary content going through the > zodb actually ends up on the filesystem. Almost. It introduces a 'Blob' object which implements the python file API (read, write, seek) and integrates/supports with: a) transaction machinery b) ZEO c) Packing The doctests should be self-explaining. -- Sidnei da Silva Enfold Systems http://enfoldsystems.com Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214 -- Sidnei da Silva Enfold Systems http://enfoldsystems.com Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214 |