[ZCM] [ZC] 2252/ 5 Resolve "Page template PUT error"

"Collector: Zope Bugs, Features, and Patches ..." <[email protected]>
Newsgroups gmane.comp.web.zope.devel.collector-monitor
Message-ID <[email protected]>
Issue #2252 Update (Resolve) "Page template PUT error"
 Status Resolved, Zope/bug critical
To followup, visit:
  http://www.zope.org/Collectors/Zope/2252

==============================================================
= Resolve - Entry #5 by ajung on Jan 10, 2007 9:45 pm

 Status: Accepted => Resolved

Should be solved with Zope 2.10.2
________________________________________
= Assign - Entry #4 by ajung on Dec 18, 2006 8:36 am

 Status: Pending => Accepted

 Supporters added: ajung

The issue is more complex than you might think and it is currently addressed on a dedicated branch.
________________________________________
= Comment - Entry #3 by smt on Dec 18, 2006 8:13 am


Uploaded:  "zptput.patch"
 - http://www.zope.org/Collectors/Zope/2252/zptput.patch/view
I solved it using code from OFs.Image.PUT and Products.PageTemplates.ZopePageTemplate.pt_upload. See attached patch.
________________________________________
= Comment - Entry #2 by eronlloyd on Dec 9, 2006 8:37 pm

Remote editing fails using FTP as well, as the same hooks are called to the page template.
________________________________________
= Request - Entry #1 by eronlloyd on Dec 9, 2006 8:35 pm

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 the same way works fine. I've tried this in both Zope 10.0 and 10.1 with the same results.
==============================================================
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.