[Zope] Re: Page template issue?
Andreas Jung
lists at zopyx.com
Sun Dec 10 08:29:37 EST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
- --On 9. Dezember 2006 20:11:54 -0500 Tres Seaver <tseaver at palladion.com>
wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Eron Lloyd wrote:
>> Hi all,
>>
>> I believe I've stumbled on a significant bug, but wanted to check before
>> reporting to the collector. When attempting to edit a page template
>> through WebDAV (in my case using KDE/Quanta+), I get an error, and
>> Zope's error_log reports the following error:
>>
>> Traceback (innermost last):
>> - Module ZPublisher.Publish, line 115, in publish
>> - Module ZPublisher.mapply, line 88, in mapply
>> - Module ZPublisher.Publish, line 41, in call_object
>> - Module Products.PageTemplates.ZopePageTemplate, line 295, in PUT
>> TypeError: pt_edit() takes at least 3 arguments (2 given)
>>
>> Editing DTML methods, scripts, and SQL methods works fine. I've tried
>> this in both 10.0 and 10.1. Anyone else having similar issues?
>
> Its a real bug: please report it to the collector:
>
> http://www.zope.org/Collectors/Zope
>
> That method *used* to call 'write()' (in 2.9 and earlier); I don't
> know why, but Andreas changed it while landing the Z3 version of the
> underlying page template engine.
>
I think it is ok to pt_edit() for the PUT factory in order pass the
content-type to pt_edit() (however that's not happening which qualifies as
a bug).
Using the write() method would work however write does not take the
content-type into account...opinions?
Andreas
- --
ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany
Web: www.zopyx.com - Email: info at zopyx.com - Phone +49 - 7071 - 793376
E-Publishing, Python, Zope & Plone development, Consulting
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)
iD8DBQFFfAvBCJIWIbr9KYwRAoVnAJ9Jn5HQUw0rqDKlru1UMravsOdPMwCeJguw
gTgEWqBQa2r4m9wpKMbXrYE=
=zF1T
-----END PGP SIGNATURE-----
More information about the Zope
mailing list