Search the web
Sign In
New User? Sign Up
zope
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
[Zope] xemacs ftp and scripts   Message List  
Reply | Forward Message #144082 of 185933 |
Hello,

I am very new to zope, and I am not an experienced lisp programmer -
please accept the standard Newbie apologies. I am avoiding the use of
DHTML, as this seems to be the approved policy. Most of my work has
been using page templates, and internal and external python scripts.

I am trying to use Xemacs to develop and maintain a site that I
created via the web interface. I have connected using the xemacs ftp
link, and can edit. I have a couple of problems.

Firstly, my xemacs did not recognise my Script(Python) files as being
Python, and so it does not automatically switch to Python Major Mode.

I added the standard shebang "#! /usr/bin/python" to the start of the
file which fixed this. However it would be nice if it were to
recognise Zope's script preamble. Please could someone point me at a
resource to help me configure my Xemacs for this.

Secondly, I found that after I had edited a script the web interface
no longer showed the file as a python script, but as a DHTML
file. When used, I just saw the script contents. Is this related to my
adding the shebang? I have now removed it again, but it has not fixed
the problem.

Is there any way I can switch them back (without using copy and
paste)? How do I avoid this happening?

I am using Debian "Sarge" Linux, which provides Zope 2.7.

Dave




--

Dave Whiteley
d.l.whiteley@...
Phone +44 (0)113 343 2059
School of Electronic and Electrical Engineering
The University of Leeds. Leeds, LS2 9JT, UK
_______________________________________________
Zope maillist - Zope@...
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )



Thu May 5, 2005 10:22 am

d.l.whiteley@...
Send Email Send Email

Forward
Message #144082 of 185933 |
Expand Messages Author Sort by Date

Hello, I am very new to zope, and I am not an experienced lisp programmer - please accept the standard Newbie apologies. I am avoiding the use of DHTML, as...
Dave Whiteley
d.l.whiteley@...
Send Email
May 5, 2005
10:22 am

... When I have created scripts in the web interface I have just accepted the defaults, and so I presume that the scripts are buried in the ZDB, rather than...
Dave Whiteley
d.l.whiteley@...
Send Email
May 5, 2005
11:12 am

... Hash: SHA1 ... You need to persuade Xemacs not to create backup files. In "standard" mode, when you go to save the file, it does something like: - rename...
Tres Seaver
tseaver@...
Send Email
May 5, 2005
1:52 pm

... I use the "efs" XEmacs package for FTP access. This package can be told not to create backup files by customizing "efs-make-backup-files". -- Dieter ...
Dieter Maurer
dieter@...
Send Email
May 5, 2005
8:30 pm

... See http://www.plope.com/Books/2_7Edition/ExternalTools.stx#3-24 and http://www.zope.org/Members/nemeth/usingEmacsWithZope HTH, Wolfram ...
Wolfram Kraus
kraus@...
Send Email
May 6, 2005
6:37 am

Thanks, magic again. Give yourselves all bug hugs. Dave -- Dave Whiteley d.l.whiteley@... Phone +44 (0)113 343 2059 School of Electronic and...
Dave Whiteley
d.l.whiteley@...
Send Email
May 6, 2005
8:33 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help