Thanks to some great feedback from the Zope community, I'm pleased to announce Site Summary 1.2.1 http://www.zope.org/Members/edmundd/SiteSummary Site Summary allows you to create RSS 0.91 channel files suitable for my.netscape.com and others. You can also import RSS files from other sources (e.g. freshmeat.net), allowing you to present this content on your own site. Changes for this release: Version 1.2.1 * import now removes previous site entries * items now named more sensibly on import * added "Contents" tab which allows normal folderish operations. This means you can now add DTML methods into your object to customize it, among other things! * content-type set to "text/xml" * new method: "entries": returns a list of entry objects in the summary, means that implementations don't have to do completely different things to discover this dependent on the value of meta_index. * new method: "htmlPreview" - DTML method provides a default rendering, you can use this in your own sites * added example "exampleSiteSummary.zexp" which is already populated and includes a DTML method to provide a simple example rendering * "Add new" now no longer a tab, but a button on the "Entries" tab Version 1.2 * Fixed an important bug which meant that you were previously unable to set the image on a per-instance basis. -- Edd Dumbill ----/ voice: +44 702-093-6870 fax: +44 870-164-0230 /---- | Managing Editor, XML.com <http://xml.com> | Publishing Editor, XMLhack.com <http://xmlhack.com> : Director, Useful Information Company <http://usefulinc.com> : Internet Director, Pharmalicensing <http://pharmalicensing.com>
Edd, I tried out the new SiteSummary product and ran into a little problem. I have an automatic summary at URL http://www.icompression.com/news/releases/NewsSummary. I'm trying to import this into another instance of SiteSummary 1.2.1 on our Intranet server. But the below error happens. You can see that the generated XML does indeed have a blank line as the first line. I can't see an easy way around this. Can you? -- Thanks -- Loren <!-- Error type: RuntimeError Error value: Syntax error at line 2: <?xml?> declaration not at start of document --> <!-- Traceback (innermost last): File /opt/Zope-2.0.0/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /opt/Zope-2.0.0/lib/python/ZPublisher/Publish.py, line 179, in publish File /opt/Zope-2.0.0/lib/python/Zope/__init__.py, line 201, in zpublisher_exception_hook (Object: iCNewsSummary) File /opt/Zope-2.0.0/lib/python/ZPublisher/Publish.py, line 165, in publish File /opt/Zope-2.0.0/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: importRSS) File /opt/Zope-2.0.0/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: importRSS) File /opt/Zope-2.0.0/lib/python/OFS/DTMLMethod.py, line 145, in __call__ (Object: importRSS) File /opt/Zope-2.0.0/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: importRSS) File /opt/Zope-2.0.0/lib/python/DocumentTemplate/DT_Util.py, line 321, in eval (Object: importFromURL(REQUEST)) File <string>, line 0, in ? File /opt/Zope-2.0.0/lib/python/Products/ExternalMethod/ExternalMethod.py, line 253, in __call__ (Object: importFromURL) (Info: (( <snip very long REQUEST structure> ), {}, None)) File /export/home2/opt/Zope-2.0.0/Extensions/SiteSummary.sitesummary_import.py, line 127, in sitesummary_import (Object: iCNewsSummary) File /export/home2/opt/Zope-2.0.0/Extensions/SiteSummary.sitesummary_import.py, line 122, in parse_url File /opt/Zope-2.0.0/lib/python1.5/xmllib.py, line 149, in feed File /opt/Zope-2.0.0/lib/python1.5/xmllib.py, line 273, in goahead File /opt/Zope-2.0.0/lib/python1.5/xmllib.py, line 748, in syntax_error RuntimeError: (see above) -->
On Wed, Nov 10, 1999 at 12:56:11PM -0800, Loren Stafford wrote:
Edd,
I tried out the new SiteSummary product and ran into a little problem. I have an automatic summary at URL http://www.icompression.com/news/releases/NewsSummary. I'm trying to import this into another instance of SiteSummary 1.2.1 on our Intranet server. But the below error happens. You can see that the generated XML does indeed have a blank line as the first line. I can't see an easy way around this. Can you?
Silly mistake on my part. The quickest way to fix it is to go into the 'xml' method of the Product ( /Control_Panel / Products / SiteSummary / RSSClass / propertysheets / methods / xml) and move the <?xml ... declaration to start on the same line as the <dtml-call... line there so there's no new line between them. I will shortly upload SiteSummary 1.2.2 to fix this difficulty. Edd.
-- Thanks -- Loren
participants (2)
-
Edd Dumbill -
Loren Stafford