[Zope-CMF] CCS_inline

Frank McGeough fm@synchrologic.com
Wed, 20 Jun 2001 12:03:06 -0400


That's very suspicious. It's the exact error I am getting on my Windows ME
machine when I was using the beta. There isn't anything wrong with the
external Python script as far as I can see. I used :set list in gvim to show
hidden characters. I can't figure out what the problem is. If I type in a
bunch of # lines (comment lines) then it works o.k. If I have a single line
of real code, it works o.k. If I have two lines of real code then I get the
syntax error.

----- Original Message -----
From: "Tres Seaver" <tseaver@palladion.com>
To: <jvdveen@dds.nl>
Cc: <zope-cmf@zope.org>
Sent: Wednesday, June 20, 2001 7:34 AM
Subject: Re: [Zope-CMF] CCS_inline


> James van der Veen wrote:
>
> > MMM I just upgraded to CMF 1.1 but now my old CMF sites don't work
anymore.
> > I get the folowing traceback.
> > Hope someone can help me with this.
> >
> > James
> >
> >
> > Site Error
> > An error was encountered while publishing this resource.
> >
> > Python Script Error
> >
> >   File "", line 2
> >
> >     import string
> >
> >                  ^
> >
> > SyntaxError: invalid syntax
>
>
> That smells like line endings got munged somewhere along the way.
> I have a test site running from the tarball, downloaded from
> the dogbowl.  It doesn't show this problem.
>
> Can you try downloading the tarball again?  Or examine the contents
> of that file, and see if it looks damaged at all? ('set fileformat'
> in vim will show you whether CR-LF's are present, for instance).
>
> Tres.
> --
>
> ===============================================================
> Tres Seaver                                tseaver@digicool.com
> Digital Creations     "Zope Dealers"       http://www.zope.org