Has anyone else experienced this? Dreamweaver MX seems to completely replace ZPT XML tags. Here's the scenario. Connect to Zope via WebDAV and open a document for editing (content.htm). Dreamweaver MX parses: <span tal:replace="structure here/page_title">Page Title</span> and replaces the span with the expanded variable information. Publish the document from MX back to Zope, and the XML is gone, replaced by the hard-coded varibale information, i.e.: <table width="100%" border="0" cellspacing="0" cellpadding="4"> <tr> <td align="left" valign="top" bgcolor="#6699CC"> <p><strong><font color="#FFFFFF" size="3"><em>Court Information: District 1</em></font></strong></p> </td> </tr> </table> Say it isn't so. I hope i'm misunderstanding something here! I'm also very much hoping that there is a setting in DW MX preferences that prevents this, but have not found it. Harlow Pinson Indepth Learning Email: hpinson@indepthl.com Web: http://www.indepthl.com Voice: 505-994-2135 FAX: 208-475-7678
hpinson@indepthl.com wrote:
Has anyone else experienced this? Dreamweaver MX seems to completely replace ZPT XML tags.
It isn't Dreamweaver doing this -- it's Zope. Since the actual GET request sent by a WebDAV client such as Dreamweaver looks just like a plain old browser request, Zope executes whatever you ask for instead of giving you the source code. You need to set up a WebDAV source port (by adding "-W 8081" to your command line, for instance) and then point DreamWeaver at that port. Cheers, Evan @ 4-am
Hmm. Yes, I'm pretty sure I have that setup. I looked at my start.bat and the port is set to -W 16xxx. However, I think my start.bat is not being used. I am on a Windows 2K platform, and am using the Windows Controller application. That seems to be bypassing the start.bat file in favor of something else (I don't know what). I looked in the Windows regestry, and WebDAV is set to port 16xxx. The Z2.py is also set to: WEBDAV_SOURCE_PORT=[16xxx] In Dreamweaver MX, I also checked my WebDAV connection setup: hostname:16xxx What else could it be? Harlow Pinson Indepth Learning Email: hpinson@indepthl.com Web: http://www.indepthl.com Voice: 505-994-2135 FAX: 208-475-7678
Also Sprach Evan Simpson <evan@4-am.com> on Mon, Jun 17, 2002 at 08:06:15PM PDT:
hpinson@indepthl.com wrote:
Has anyone else experienced this? Dreamweaver MX seems to completely replace ZPT XML tags.
It isn't Dreamweaver doing this -- it's Zope. Since the actual GET request sent by a WebDAV client such as Dreamweaver looks just like a plain old browser request, Zope executes whatever you ask for instead of giving you the source code. You need to set up a WebDAV source port (by adding "-W 8081" to your command line, for instance) and then point DreamWeaver at that port.
I've seen similar results. I was playing around with "Kate" (the KDE text editor), which supports WebDAV (well, there's a webdav kioslave, but the effect is the same). I had WebDAV in ZServer running and I was using the correct port, because I didn't at first and was only able to get the pages in published form (or whatever you'd call it after the templates and such have been expanded). I could edit my template page just fine, but when I would open a page that used the template (slots and such were filled in, done through the web interface), it just gave me the template with default content again and ignored the content I'd already assigned to the page. I'm completely new to Zope and might have done something wrong with inheritance or something. Wil -- W. Reilly Cooley wcooley@nakedape.cc Naked Ape Consulting http://nakedape.cc * Linux and Network Consulting * irc.linux.com #orlug,#lnxs A prohibitionist is the sort of man one wouldn't care to drink with -- even if he drank. -- H.L. Mencken
Wil Cooley wrote:
I'm completely new to Zope and might have done something wrong with inheritance or something.
Sounds like you may have got confused over METAL. Anything outside of a metal:fill-slot can't be edited. Well, it can, but when you save it, it'll be overwritten by the contents of the macro.. cheers, Chris
On Wed, 2002-06-19 at 00:41, Chris Withers wrote:
Wil Cooley wrote:
I'm completely new to Zope and might have done something wrong with inheritance or something.
Sounds like you may have got confused over METAL. Anything outside of a metal:fill-slot can't be edited.
Well, it can, but when you save it, it'll be overwritten by the contents of the macro..
Well, that's entirely possible. What do you mean by "Anything outside of a metal:fill-slot can't be edited." ? Do you mean can't be edited with WebDAV, or can't be edited and expected to have any effect or something else? I could be wrong, but my expectation with WebDAV is that I should be able to edit anything I can get to with the web management interface (aside from thing like properties and other non-file-like features). Here's what my template looks like (this is the current cumulative result of several hours of experimenting and reading, so things might be a little off): <html metal:define-macro="page"> <head> <title tal:content="python:path('template/title') or path('here/title') or path('container/title')"> The document title or folder title or the example title </title> </head> <body> <div metal:define-slot="body"> <p>Bar bar bar bar bar</p> </div> </body> </html> And then pages using these templates look like: <html metal:use-macro="container/index_html_tal/macros/page"> <span metal:fill-slot="body"> <p>Foo Foo Foo</p> </span> </html> When I open the file with the "Foo" body in Kate, I actually get the main template, without any of the stuff from "Foo". Wil -- W. Reilly Cooley wcooley@nakedape.cc Naked Ape Consulting http://nakedape.cc * Linux and Network Consulting * irc.linux.com #orlug,#lnxs The most costly of all follies is to believe passionately in the palpably not true. It is the chief occupation of mankind. -- H.L. Mencken
Wil Cooley writes:
.... Well, that's entirely possible. What do you mean by "Anything outside of a metal:fill-slot can't be edited." ? Do you mean can't be edited with WebDAV, or can't be edited and expected to have any effect or something else? It can be edited, but when the page template is macro expanded (the first step before rendering), the modifications are lost (replaced by the parts of the macro definition).
Dieter
I still can't figure out why WebDAV accessed ZPT documents are being rewritten by Dreamweaver MX. Platform is W2K. I've checked startup and ports as people suggested. Here's my start.bat (run as an NT service). --------------------------------------------------- c:\Progra~1\Python\python.exe d:\Zope\z2.py -W 10000 -p - -f - %1 %2 %3 %4 %5 %6 %7 %8 %9 STUPID_LOG_FILE="d:\logs\zope\startup.log --------------------------------------------------- And here is the startup log from the STUPID_LOG_FILE. Note the fourth to last line. It says that the 10000 port is being opened up as an HTTP server, and not WebDAV. Is that correct? ---------------------------------------------------- 2002-06-19T18:34:00 INFO(0) ZServer HTTP server started at Wed Jun 19 12:34:00 2002 Hostname: ZOPESERVER Port: 10000 ------ 2002-06-19T18:36:15 INFO(0) ZODB Opening database for mounting: '15850216_1020806557.421000' ------ 2002-06-19T18:36:15 INFO(0) ZODB Mounted database '15850216_1020806557.421000' at /temp_folder ------ 2002-06-19T18:36:15 INFO(0) ZServer HTTP server started at Wed Jun 19 12:36:15 2002 Hostname: ZOPESERVER Port: 80 ------ 2002-06-19T18:36:15 INFO(0) ZServer HTTP server started at Wed Jun 19 12:36:15 2002 Hostname: ZOPESERVER Port: 10000 Harlow Pinson Indepth Learning Email: hpinson@indepthl.com Web: http://www.indepthl.com Voice: 505-994-2135 FAX: 208-475-7678
participants (5)
-
Chris Withers -
Dieter Maurer -
Evan Simpson -
hpinson@indepthl.com -
Wil Cooley