[Zope-CMF] Re: CMFImageDoc broken in CMF 1.2?

Tres Seaver tseaver@zope.com
Thu, 10 Jan 2002 10:07:18 -0500


Jon Edwards wrote:

> Thanks Ulrich,
> 
> That works, except that "text" and "text_format" are the wrong way round -
> so you end up with "structured-text" in your text field :-)
> 
> The line that calls Document._edit should read -
> 
>     Document._edit(self, text, text_format, safety_belt)
> 
> Thanks for your help!
> 
> Has anyone experimented with having more than one picture for each doc? When
> images are going to be part of a Document, it seems to be a lot of
> unnecessary work to use the full CMF-Image type, much easier just to use
> basic Zope image objects?


CMF's Images have two advantages over stock OFS.Image.Image:  they
are searchable using the standard metadata, and they can be managed
within the CMF folder UI.  If neither of these matter for your
application (e.g., the images are always contained in a skinned
folder, which has a custom UI for managing them, and you *don't*
want them to be separately searchable), then don't use them.

BTW, in case folks didn't know this, CMFDefault.Document can embed
images even when their format is STX, using STX's "image link"
syntax::

   "Manager and Designer scenario":img:1:manageranddesigner.png

For an example, see Jeffrey's composites proposal, which has some
nice diagrams embedded in it:

   http://cmf.zope.org/rqmts/proposals/compounds/compoundproposal.txt


-- 
===============================================================
Tres Seaver                                tseaver@zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com