[ZPT] Page Templates in WebDAV arrive as rendered HTML
zope@meadowbase.com
zope@meadowbase.com
Thu, 23 Aug 2001 07:51:21 -0700
> The z2.py start script has a "-W <port#>" argument that you=20
> can use to=20
> set up a WebDAV source port. For instance, if you add "-W=20
Thanks! That does the trick.
> an object database. For instance, when Dreamweaver saves changes, it=20
> will create a temporary file, rename the original file, rename the=20
I'm just working with ordinary text editors, so hopefully that won't be
a problem.
--- Francis Potter
> -----Original Message-----
> From: zpt-admin@zope.org [mailto:zpt-admin@zope.org] On=20
> Behalf Of Evan Simpson
> Sent: Thursday, August 23, 2001 7:29 AM
> To: zope@meadowbase.com
> Cc: zpt@zope.org
> Subject: Re: [ZPT] Page Templates in WebDAV arrive as rendered HTML
>=20
>=20
> zope@meadowbase.com wrote:
> > I installed WebIFS, a Win32 WebDAV client that makes DAV
> > content look like another drive in the file system. When I=20
> pull down a
> > Page Template object to edit it, I get the final HTML, not the page
> > template text itself.
>=20
> Most (all?) WebDAV clients don't take dynamic pages into account, and=20
> send a simple HTTP GET to load them. This gets you the=20
> rendered HTML.=20
> The z2.py start script has a "-W <port#>" argument that you=20
> can use to=20
> set up a WebDAV source port. For instance, if you add "-W=20
> 9800", Zope=20
> will send page source in response to GET requests on port #9800.
>=20
> You should only use WebDAV with a source port.
>=20
> Also, there's an issue to beware of when using a "make WebDAV server=20
> look like a mapped drive" products such as WebDrive and=20
> WebIFS. Since=20
> web page editors think that they are editing a local file, they will=20
> often perform operations that work well with a filesystem but=20
> screw up=20
> an object database. For instance, when Dreamweaver saves changes, it=20
> will create a temporary file, rename the original file, rename the=20
> temporary file into place, then delete the original file. =20
> This destroys=20
> all properties, history, and security settings of the page.
>=20
> Cheers,
>=20
> Evan @ Zope
>=20
>=20
> _______________________________________________
> ZPT mailing list
> ZPT@zope.org
> http://lists.zope.org/mailman/listinfo/zpt
>=20