Hi everyone, I'm using Amos's RSSChannel prodcut along with XMLDocument, but it seems that upgrading to 2.1.5 has broken it. Can anyone else verify this? -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/ W. St. Paul, MN | | http://slashdot.org/ wilson@visi.com | <dtml-var pithy_quote> | http://linux.com/
Timothy Wilson wrote:
Hi everyone,
I'm using Amos's RSSChannel prodcut along with XMLDocument, but it seems that upgrading to 2.1.5 has broken it. Can anyone else verify this?
Can you describe how it is broken? Is there a traceback? Are both RSSChannel and XMLDocument broken? -Michel
On Sat, 18 Mar 2000, Michel Pelletier wrote:
Can you describe how it is broken? Is there a traceback? Are both RSSChannel and XMLDocument broken?
I realized 2 sec. after I sent that message that I should have included a traceback. <dopeslaps self> <!-- Traceback (innermost last): File /usr/local/src/zope/2.1.5/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /usr/local/src/zope/2.1.5/lib/python/ZPublisher/Publish.py, line 179, in publish> File /usr/local/src/zope/2.1.5/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook> -Michel (Object: ApplicationDefaultPermissions)> File /usr/local/src/zope/2.1.5/lib/python/ZPublisher/Publish.py, line 165, in publish File /usr/local/src/zope/2.1.5/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: index_html) File /usr/local/src/zope/2.1.5/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: index_html) File /usr/local/src/zope/2.1.5/lib/python/OFS/DTMLMethod.py, line 150, in __call__ (Object: index_html) File /usr/local/src/zope/2.1.5/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: index_html) File /usr/local/src/zope/2.1.5/lib/python/OFS/DTMLMethod.py, line 146, in __call__ (Object: rss_news) File /usr/local/src/zope/2.1.5/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: rss_news) File /usr/local/src/zope/2.1.5/lib/python/DocumentTemplate/DT_With.py, line 148, in render (Object: headlines) File /usr/local/src/zope/2.1.5/lib/python/DocumentTemplate/DT_In.py, line 691, in renderwob (Object: objectValues('RSS Channel')) File /usr/local/src/zope/2.1.5/lib/python/App/special_dtml.py, line 120, in __call__ (Object: asHTML) File /usr/local/src/zope/2.1.5/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: asHTML) File /usr/local/src/Zope/lib/python/Products/RSSChannel/RSSChannel.py, line 92, in update (Object: B_Moreover_business) File /usr/local/src/zope/2.1.5/lib/python/Products/XMLDocument/XMLDocument.py, line 240, in parse (Object: Manageable) File /usr/local/src/zope/2.1.5/lib/python/Products/XMLDocument/Builder.py, line 149, in parse File /usr/local/src/zope/2.1.5/lib/python/Products/XMLDocument/Builder.py, line 181, in cdata File /usr/local/src/zope/2.1.5/lib/python/Products/XMLDocument/Node.py, line 434, in appendChild (Object: Manageable) WrongDocumentException: (see above) --> Notice that line where it refers to RSSChannel.py. It's pointing to the RSSChannel.py file in my previous (2.1.4) version of Zope. Odd. However, it might have something to do with the fact that when I installed 2.1.5 I didn't untar a fresh copy of RSSChannel, but copied it to the new directory instead. I did that because I'd made some changes to RSSChannel.py and another file and didn't want to redo them. I did a 'cp -a' if memory serves. I was under the impression that you could copy the directories in lib/python/Products/ over to a new Zope. Obviously it didn't work in this case. -Tim -- wilson@visi.com
Timothy Wilson wrote:
(snip)
Notice that line where it refers to RSSChannel.py. It's pointing to the RSSChannel.py file in my previous (2.1.4) version of Zope. Odd.
However, it might have something to do with the fact that when I installed 2.1.5 I didn't untar a fresh copy of RSSChannel, but copied it to the new directory instead. I did that because I'd made some changes to RSSChannel.py and another file and didn't want to redo them. I did a 'cp -a' if memory serves.
I was under the impression that you could copy the directories in lib/python/Products/ over to a new Zope. Obviously it didn't work in this case.
It did work. The filename that appears in the traceback is the name of the .py file when it was compiled to produce a .pyc file. Since you copied the pyc file, the old name was retained. Please see my other note for information on a fix to this problem. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org 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 damages/incident, $1500 for repeats.
participants (3)
-
Jim Fulton -
Michel Pelletier -
Timothy Wilson