[Zope-CMF] Re: CMFImageDoc broken in CMF 1.2?
Jon Edwards
jon@pcgs.freeserve.co.uk
Thu, 10 Jan 2002 10:45:11 -0000
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?
Cheers, Jon
> -----Original Message-----
> From: Ulrich Eck [mailto:ueck@net-labs.de]
> Sent: 10 January 2002 08:57
> To: Chris Withers; Jon Edwards
> Cc: Zope-Cmf; harryw@nipltd.com; andyd@nipltd.com
> Subject: Re: [Zope-CMF] Re: CMFImageDoc broken in CMF 1.2?
>
>
> Hi there,
>
> i tried CMFImageDoc yesterday and fixed this problem.
>
> I have attached a little patch
>
> hope this helps
>
> >
> >> The Edit method seems to be broken with CMF 1.2b. When I click
> Change on
> >> the edit form I get a Type Error, ending with -
> >>
> >> File Script (Python), line 9, in ImageDoc_edit
> >> File C:\Program
> >> Files\zope25\lib\python\Products\CMFCore\WorkflowCore.py, line 88, in
> >> __call__
> >> (Object: edit)
> >> File C:\Program
> >> Files\zope25\lib\python\Products\CMFCore\WorkflowTool.py,
> line 461, in
> >> wrapWorkflowMethod
> >> (Object: portal_workflow)
> >> File C:\Program
> >> Files\zope25\lib\python\Products\CMFImageDoc\ImageDoc.py, line 94, in
> >> _edit
> >> (Object: testimagedoc)
> >> TypeError: _edit() takes at most 4 arguments (5 given)
> >>
>
> hope this helps
>
> Ulrich Eck
> ------------------------------------------------------------------
> ---------
> net-labs Systemhaus GmbH
> Ebersberger Str. 46
> 85570 Markt Schwaben
> fon: +49-8121-4747-11
> fax: +49-8121-4747-77
> email: ueck@net-labs.de
> http://www.net-labs.de