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

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

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 #144084 of 185931 |
Re: [Zope] xemacs ftp and scripts

On Thu, May 05, 2005 at 01:00:55PM +0200, SER.RI-TIC-Alexis Roda wrote:
> Dave Whiteley wrote:
> >Hello,
> >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.
>
> xemacs probably relies on file extension to decide the mode. Just rename
> your scripts and add a .py extension (not a good idea, since . is
> meaningful for python)

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 being actual files. Should I give them actual filenames
when I create them?

> or add something like (not tested):
>
> # Local Variables:
> # mode:python
> # End:
>



Thanks, magic! That works.

Now if I can fix the file type problem....

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 11:12 am

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

Forward
Message #144084 of 185931 |
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