Re: [Zope] [OT] EMACS, FTP & Firewalls
Chris Withers <chrisw@nipltd.com> writes:
Change your ftp client to use passive ftp and everything should work.
Anyone know how I do that with ange-ftp in EMACS?
;; ange-ftp, passive mode already (setq ange-ftp-gateway-ftp-program-name "pftp") (setq ange-ftp-local-host-regexp "foobar.not") (setq ange-ftp-smart-gateway t) ...where pftp is passive ftp from the start, same as ftp -p, came with my ftp distribution. -- Karl Anderson karl@digicool.com
Karl Anderson wrote:
Anyone know how I do that with ange-ftp in EMACS?
...where pftp is passive ftp from the start, same as ftp -p, came with my ftp distribution.
The problem is that WinNT's command line FTP doesn't support passive mode :-( Anyone know where I can get a replacement? (no, I'm not installing Linux ;-) Anyway, while we're totally OT, how do you stop EMACS creating backups when you save files? When this happens in Zope (say editing a python script) you end up with mypythonscript~ (a python script object) and mypythonscript (a dtml document) which is less useful than it could be ;-) Climbing back vaguely on topic, how would I go about making Zope create python scripts when it gets a PUT of type text/python or whatever? Also, is there any reason why DTML Documents are created by default? DTML Methods woudl be a better default choice, IMHO. cheers, Chris
Chris Withers <chrisw@nipltd.com> writes: [...]
Anyway, while we're totally OT, how do you stop EMACS creating backups when you save files? When this happens in Zope (say editing a python script) you end up with mypythonscript~ (a python script object) and mypythonscript (a dtml document) which is less useful than it could be ;-)
If you have GNU Emacs 20, try M-x customize-group RET backup RET This should show you a customization buffer with variables explained.
Climbing back vaguely on topic, how would I go about making Zope create python scripts when it gets a PUT of type text/python or whatever? Also, is there any reason why DTML Documents are created by default? DTML Methods woudl be a better default choice, IMHO.
Agreed, but that doesn't help much for python- or sql-methods. Thx Siggy -- Siggy Brentrup - bsb@winnegan.de - http://www.winnegan.de/ ****** ceterum censeo javascriptum esse restrictam *******
Siggy Brentrup wrote:
If you have GNU Emacs 20, try
M-x customize-group RET backup RET
This should show you a customization buffer with variables explained.
Cool. Thanks :-) What do I need to put in my .emacs file to get the same effect?
Agreed, but that doesn't help much for python- or sql-methods.
Hmmm, I remember something about hookable PUT floating around a while back. In that case, PUT just needs to be hooked for these two types. I wonder if hooking is on content type, file extension or both? .py -> Python Script .sql -> ZSQL Method Now wouldn't that be cool? I may just have to give it a go :-) cheers, Chris
Vous - Chris Withers - avez �crit, le Dimanche 25 Mars 2001 15:28 :
... Anyway, while we're totally OT, how do you stop EMACS creating backups when you save files?
try M-x : set-variable <enter> make-backup-files <enter> nil hope ... -- Herve RICHARD INRA - Biometrie tel: 04 32 72 21 79 AgroParc Prof. email: Herve.Richard@avignon.inra.fr 84914 AVIGNON cedex 9 Priv. email: rv.richard@oreka.com
participants (4)
-
Chris Withers -
Hervé Richard -
Karl Anderson -
Siggy Brentrup