[Zope] ever see this ? Confera.py error trace back
ozric
ozric@tampabay.rr.com
Sat, 18 Dec 1999 13:40:11 -0500
I made the changes to the Confera.py as you suggested. But now the Product is
broken. Is there some thing else I need to do the get it working again.
I stoped Zope and restared the pcgi thread. No dice. I went back to
the origanl Confera.py and now the Product works again. So I must be
missing something.
Evan Simpson wrote:
>
> ozric wrote:
>
> > I was checking out Confera, I just did some very lite mods to the DTML's
> > and when I was testing it out and when replying to a message I get this.
> >
> > File /var/tmp/python-root/usr/lib/python1.5/regsub.py, line 38, in gsub
> > AttributeError: (see above)
> >
> > I looked at the Confera.py and found line 565, it looks the same as line
> > 287. I know it has something to do with splitting the index_html to see the
> > thead. Any help would be great, I am just learnig Python and don't know
> > what is error is all about. btw I have Python 1.5.2 and Zope 2.1.1 .
>
> This may or may not be the problem you're seeing, but I was recently very
> startled to discover that Confera was dying on messages with carriage returns!
>
> I ended up making the following changes to Confera.py:
>
> o Dump regsub module in favor of ts_regex
> o Change all calls to "split(regsub.gsub(..." to "split(ts_regex.gsub(crlf..."
> o Make module global constant "crlf = '\r\n|\n\r' "
>
> Cheers,
>
> Evan @ 4-am
--
"One World, one Web, one Program" - Microsoft promotional ad (circa 1995)
"Ein Volk, ein Reich, ein Fuhrer" - Adolf Hitler
Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission. Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damage per incident.