hello, how do people usually edit dtml? the form interface is ok for tweaks and testing, but i don't imagine anyone uses it for anything over a dozen or so lines. i usually edit with joe or emacs. joe doesn't support ftp transparently so that would be a bit painful. emacs would be good, except psgml aka sgml-mode doesn't seem to get along with the dtml tags very well, at least without some further education. if i use a html 4 dtd, it doesn't know about dtml tags and the indentation magic thinks they all have to be closed. so after each <dtm-var> everything gets indented a step further.. i'm no sgml or emacs wizard, has anyone hacked the dtml tags into a html dtd, or alternatively is there a dtml-mode somewhere? i found a 0.01 version of a dtml-mode but it only seemed to support the ugly <!--# ... --> syntax. also, if zope is running on another machine, ftp is insecure. is there any way to prevent stuff from being transmitted in the clear? zope is very interesting, it seems silly that there isn't a nicer system for editing in place, considering that editing is the thing you spend most of the time doing :) or am i missing something? actually, the best thing would be if i could just edit stuff on the local filesystem, but as i understand there's now way of having dtml documents there? cheers, -- erno PS. please cc me as i'm not on the list (i'm reading the archives)
following up to myself... | emacs would be good, except psgml aka sgml-mode doesn't seem to get | along with the dtml tags very well, at least without some further | education. | | if i use a html 4 dtd, it doesn't know about dtml tags and the | indentation magic thinks they all have to be closed. so after each | <dtm-var> everything gets indented a step further.. a nice gentleman on irc just advised me that you can make psgml play nice by setting sgml-ignore-undefined-elements to t. ie in your .emacs, (setq sgml-ignore-undefined-elements t). this is great, my editing problems are adequately solved now :) -- erno
On Mon, 24 Jan 2000, Erno Kuusela wrote:
i usually edit with joe or emacs. joe doesn't support ftp transparently so that would be a bit painful.
I usually edit with XEmacs -- however, how do I ftp into a zope server?! I can't find the documentation on this (I really need to learn how to read the Zope site ... it currently mystifies me) but does Zope run an ftp server on a funny port by default? I actually spent some time hacking WebDAV clients to do recursive fetches because I couldn't figure this out! Finally, how does Emacs (or XEmacs) support FTP transparently? I've been using it for 5 years and I've never run across this feature =) ---- The Tao is like a glob pattern: It is masked but always present. used but never used up. I don't know who built to it. It is like the extern void: It came before the first kernel. filled with infinite possibilities. [glyph@twistedmatrix.com]
hello :) | On Mon, 24 Jan 2000, Erno Kuusela wrote: | | > i usually edit with joe or emacs. joe doesn't support ftp transparently | > so that would be a bit painful. | | I usually edit with XEmacs -- however, how do I ftp into a zope server?! | | I can't find the documentation on this (I really need to learn how to read | the Zope site ... it currently mystifies me) but does Zope run an ftp | server on a funny port by default? yep. it's on port 8021 by default (well, at least in the debian zope package it is). | Finally, how does Emacs (or XEmacs) support FTP transparently? I've been | using it for 5 years and I've never run across this feature =) you live and learn ;) the emacs package is called ange-ftp, don't remember what the xemacs thingy is. see <URL:http://www.zope.org/Members/michel/HowTos/zopeandemacs> for detailed instructions for both flavours of emacsen. the non-standard port requires some non-standard trickery. i usually use rcp.el because it supports ssh/scp, but that doesn't work with zope of course. it's at <URL:ftp://ls6-ftp.cs.uni-dortmund.de/pub/src/emacs/rcp.tar.gz>. combined with ssh-agent it makes life so much easier. -- erno
ack, correction, the zope web site was unreacable and i just copied a plausible-looking url from a google hit :) the emacs howto i was talking about is at <URL:http://www.zope.org/Members/nemeth/usingEmacsWithZope>. -- erno
just open a file with C-xC-F with path /user@host port:/path . Note the space between host and port: enter it as C-q (hit space) . This is for Emacs, for XEmacs, i think you kan use # iso space. Jeroen
-----Original Message----- From: Glyph Lefkowitz [mailto:glyph@helix.twistedmatrix.com]On Behalf Of Glyph Lefkowitz Sent: dinsdag 25 januari 2000 18:52 To: Erno Kuusela Cc: zope@zope.org Subject: Re: [Zope] DTML editing tips, for emacs or otherwise?
On Mon, 24 Jan 2000, Erno Kuusela wrote:
i usually edit with joe or emacs. joe doesn't support ftp transparently so that would be a bit painful.
I usually edit with XEmacs -- however, how do I ftp into a zope server?!
I can't find the documentation on this (I really need to learn how to read the Zope site ... it currently mystifies me) but does Zope run an ftp server on a funny port by default? I actually spent some time hacking WebDAV clients to do recursive fetches because I couldn't figure this out!
Finally, how does Emacs (or XEmacs) support FTP transparently? I've been using it for 5 years and I've never run across this feature =)
---- The Tao is like a glob pattern: It is masked but always present. used but never used up. I don't know who built to it. It is like the extern void: It came before the first kernel. filled with infinite possibilities. [glyph@twistedmatrix.com]
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
On Wed, 26 Jan 2000, Jeroen Baekelandt wrote:
just open a file with C-xC-F with path /user@host port:/path . Note the space between host and port: enter it as C-q (hit space) . This is for Emacs, for XEmacs, i think you kan use # iso space.
This is GREAT! I just fired it up and it worked instantly! The things you learn... The distinction is actually between ange-ftp and efs -- efs uses '#', ange-ftp uses ' '. I do have one question about this though. If I do a PUT, I create a dtml-document. Is it possible to create a method instead, perhaps with a SITE command?
Jeroen
Thanks! --glyph ---- The Tao is like a glob pattern: It is masked but always present. used but never used up. I don't know who built to it. It is like the extern void: It came before the first kernel. filled with infinite possibilities. [glyph@twistedmatrix.com]
participants (3)
-
Erno Kuusela -
Glyph Lefkowitz -
Jeroen Baekelandt