[Zope-CMF] Re: CMFImageDoc broken in CMF 1.2?
Ulrich Eck
ueck@net-labs.de
Thu, 10 Jan 2002 09:57:13 +0100
--==========01818369==========
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
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
--==========01818369==========
Content-Type: application/octet-stream; name="Imagedoc.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="Imagedoc.patch"; size=464
OTRjOTQsMTAyCjwgICAgIERvY3VtZW50Ll9lZGl0KHNlbGYsIHRleHRfZm9ybWF0LCB0ZXh0LCBm
aWxlLCBzYWZldHlfYmVsdCkKLS0tCj4gICAgIGlmIGZpbGUgYW5kICh0eXBlKGZpbGUpIGlzIG5v
dCB0eXBlKCcnKSk6Cj4gCWNvbnRlbnRzPWZpbGUucmVhZCgpCj4gCWlmIGNvbnRlbnRzOgo+ICAg
ICAgICAgICAgIHRleHQgPSBjb250ZW50cwo+ICAgICB0ZXh0ID0gc2VsZi50ZXh0ID0gYm9keWZp
bmRlcih0ZXh0KQo+ICAgICBzZWxmLnNldEZvcm1hdCh2YWx1ZT10ZXh0X2Zvcm1hdCkKPiAKPiAg
ICAgRG9jdW1lbnQuX2VkaXQoc2VsZiwgdGV4dF9mb3JtYXQsIHRleHQsIHNhZmV0eV9iZWx0KQo+
ICAgICBzZWxmLnJlaW5kZXhPYmplY3QoKQoxNTdjMTY1CjwgSW5pdGlhbGl6ZUNsYXNzKEltYWdl
RG9jKQpcIE5vIG5ld2xpbmUgYXQgZW5kIG9mIGZpbGUKLS0tCj4gSW5pdGlhbGl6ZUNsYXNzKElt
YWdlRG9jKQo=
--==========01818369==========--