Hi everyone, I've got a problem using Site Summary because of a problem with a URL I'm trying to retrieve, not directly because of the Site Summary product. I'm trying to get some of the news feeds from moreover.com, but their URLs look like: http://h.moreover.com/cgi-local/page?index_techlatest+rss The '?' in the URL really confuses things when I try to update the Site Summary instance using the prescribed method of calling importFromURL like this: http://www.mysite.com/mySummary/importFromURL?url=http://h.moreover.com/cgi-... Evan Simpson suggested creating a method in the directory where I keep my Site Summary instances that looks like: <dtml-with moreover.com_techlatest) <dtml-call expr="importFromURL(this(), REQUEST, url='http://h.moreover.com/cgi-local/page?index_techlatest+rss')"> </dtml-with> and then my updating script (using cron) would be: #!/bin/sh lynx -source http://localhost/headlines/grabNews Unfortunately, doing what I just described doesn't work and produces the following traceback: Traceback (innermost last): File /usr/local/src/Zope-2.1.2-src/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /usr/local/src/Zope-2.1.2-src/lib/python/ZPublisher/Publish.py, line 179, in publish File /usr/local/src/Zope-2.1.2-src/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: ElementWithAttributes) File /usr/local/src/Zope-2.1.2-src/lib/python/ZPublisher/Publish.py, line 165, in publish File /usr/local/src/Zope-2.1.2-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: grabNews) File /usr/local/src/Zope-2.1.2-src/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: grabNews) File /usr/local/src/Zope-2.1.2-src/lib/python/OFS/DTMLMethod.py, line 145, in __call__ (Object: grabNews) File /usr/local/src/Zope-2.1.2-src/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: grabNews) File /usr/local/src/Zope-2.1.2-src/lib/python/DocumentTemplate/DT_With.py, line 132, in render (Object: moreover.com_techlatest) KeyError: (see above) Does anyone have any ideas? Perhaps you've gotten this to work with another strategy. Thanks. -Tim -- wilson@visi.com <dtml-var pithy_quote>
participants (1)
-
Timothy Wilson