ever see this ? Confera.py error trace back
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. Traceback (innermost last): File /home/httpd/Zope-2.1.1/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /home/httpd/Zope-2.1.1/lib/python/ZPublisher/Publish.py, line 179, in publish File /home/httpd/Zope-2.1.1/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook File /home/httpd/Zope-2.1.1/lib/python/ZPublisher/Publish.py, line 165, in publish File /home/httpd/Zope-2.1.1/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: addMessage) File /home/httpd/Zope-2.1.1/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: addMessage) File lib/python/Products/Confera/Confera.py, line 565, in addMessage 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 . Confused Rick -- 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.
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
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.
Maybe you could email me your version of the file ;). 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.
participants (2)
-
Evan Simpson -
ozric