Re: [Zope] Zope Syndication
I contacted Soren Roug, the author of RDFSummary. The answer is: <dtml-var "channel()['title']"> Thanks again for your interest and support, Ot ----- Original Message ----- From: "Magnus Alvestad" <magnus@websys.no> To: <ot.ratsaphong@tpg.com.au> Sent: Wednesday, February 20, 2002 2:24 AM Subject: Re: [Zope] Zope Syndication
Try <dtml-var "channel['title']"> .. think you forgot the quotes.
-Magnus
"Ot Ratsaphong" <ot.ratsaphong@tpg.com.au> writes:
I contacted Soren Roug, the author of RDFSummary. The answer is:
<dtml-var "channel()['title']">
Mh, using this inside a CMF gives me an error: <H2>Site Error</H2> <P>An error was encountered while publishing this resource. </P> <P> <STRONG>Error Type: AttributeError</STRONG><BR> <STRONG>Error Value: __call__</STRONG><BR> </P> <HR NOSHADE> <P>Troubleshooting Suggestions</P> <UL> <LI>The URL may be incorrect.</LI> <LI>The parameters passed to this resource may be incorrect.</LI> <LI>A resource that this resource relies on may be encountering an error.</LI> </UL> <P>For more detailed information about the error, please refer to the HTML source for this page. </P> <P>If the error persists please contact the site maintainer. Thank you for your patience. </P> <!-- Traceback (innermost last): File /home/customers/Zope-2.4.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /home/customers/Zope-2.4.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/customers/Zope-2.4.1-linux2-x86/lib/python/Zope/__init__.py, line 226, in zpublisher_exception_hook (Object: LockableItem) File /home/customers/Zope-2.4.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 171, in publish File /home/customers/Zope-2.4.1-linux2-x86/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: index_html) File /home/customers/Zope-2.4.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: index_html) File /home/customers/Zope-2.4.1-linux2-x86/lib/python/OFS/DTMLMethod.py, line 194, in __call__ (Object: index_html) File /home/customers/Zope-2.4.1-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line 546, in __call__ (Object: index_html) File /home/customers/Zope-2.4.1-linux2-x86/lib/python/OFS/DTMLMethod.py, line 187, in __call__ (Object: headlines) File /home/customers/Zope-2.4.1-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line 546, in __call__ (Object: headlines) File /home/customers/Zope-2.4.1-linux2-x86/lib/python/DocumentTemplate/DT_With.py, line 148, in render (Object: dichtungdigital.rdf) File /home/customers/Zope-2.4.1-linux2-x86/lib/python/DocumentTemplate/DT_Util.py, line 231, in eval (Object: channel()['description']) (Info: channel) File <string>, line 2, in f (Object: guarded_getitem) AttributeError: (see above) --> -- Bücherwahnsinn! Was kann man ohne Angst noch lesen? http://www.sudelbuch.de/2001/20010228.html
Soren Roug warned against using RDFSummary 2.0 because there have been many changes to the API that have not been documented. I'm too much of a newbie to help here. Sorry : ( ----- Original Message ----- From: "Jan Ulrich Hasecke" <janulrich.hasecke@web.de> To: "Ot Ratsaphong" <ot.ratsaphong@tpg.com.au> Cc: <zope@zope.org> Sent: Friday, February 22, 2002 12:50 AM Subject: Re: [Zope] Zope Syndication "Ot Ratsaphong" <ot.ratsaphong@tpg.com.au> writes:
I contacted Soren Roug, the author of RDFSummary. The answer is:
<dtml-var "channel()['title']">
Mh, using this inside a CMF gives me an error: <H2>Site Error</H2> <P>An error was encountered while publishing this resource. </P> <P> <STRONG>Error Type: AttributeError</STRONG><BR> <STRONG>Error Value: __call__</STRONG><BR> </P> <HR NOSHADE> <P>Troubleshooting Suggestions</P> <UL> <LI>The URL may be incorrect.</LI> <LI>The parameters passed to this resource may be incorrect.</LI> <LI>A resource that this resource relies on may be encountering an error.</LI> </UL> <P>For more detailed information about the error, please refer to the HTML source for this page. </P> <P>If the error persists please contact the site maintainer. Thank you for your patience. </P> <!-- Traceback (innermost last): File /home/customers/Zope-2.4.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /home/customers/Zope-2.4.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/customers/Zope-2.4.1-linux2-x86/lib/python/Zope/__init__.py, line 226, in zpublisher_exception_hook (Object: LockableItem) File /home/customers/Zope-2.4.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 171, in publish File /home/customers/Zope-2.4.1-linux2-x86/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: index_html) File /home/customers/Zope-2.4.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: index_html) File /home/customers/Zope-2.4.1-linux2-x86/lib/python/OFS/DTMLMethod.py, line 194, in __call__ (Object: index_html) File /home/customers/Zope-2.4.1-linux2-x86/lib/python/DocumentTemplate/DT_String. py, line 546, in __call__ (Object: index_html) File /home/customers/Zope-2.4.1-linux2-x86/lib/python/OFS/DTMLMethod.py, line 187, in __call__ (Object: headlines) File /home/customers/Zope-2.4.1-linux2-x86/lib/python/DocumentTemplate/DT_String. py, line 546, in __call__ (Object: headlines) File /home/customers/Zope-2.4.1-linux2-x86/lib/python/DocumentTemplate/DT_With.py , line 148, in render (Object: dichtungdigital.rdf) File /home/customers/Zope-2.4.1-linux2-x86/lib/python/DocumentTemplate/DT_Util.py , line 231, in eval (Object: channel()['description']) (Info: channel) File <string>, line 2, in f (Object: guarded_getitem) AttributeError: (see above) --> -- Bücherwahnsinn! Was kann man ohne Angst noch lesen? http://www.sudelbuch.de/2001/20010228.html _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
"Ot Ratsaphong" <ot.ratsaphong@tpg.com.au> writes:
Soren Roug warned against using RDFSummary 2.0 because there have been many changes to the API that have not been documented.
I am using 1.4, sorry for for intruding this 2.0-thread. But I cannot get this channel-thing to work. picture, items no problem, but I cannot access channel-info. Ciao! juh -- Antifa-Stoiber will den braunen Sumpf trockenlegen http://www.sudelbuch.de/2000/20000813.html
Have you tried: <dtml-var "channel()[_['title']]"> ? ----- Original Message ----- From: "Ot Ratsaphong" <ot.ratsaphong@tpg.com.au> To: <zope@zope.org> Sent: Friday, February 22, 2002 6:55 PM Subject: Re: [Zope] Zope Syndication Soren Roug warned against using RDFSummary 2.0 because there have been many changes to the API that have not been documented. I'm too much of a newbie to help here. Sorry : ( ----- Original Message ----- From: "Jan Ulrich Hasecke" <janulrich.hasecke@web.de> To: "Ot Ratsaphong" <ot.ratsaphong@tpg.com.au> Cc: <zope@zope.org> Sent: Friday, February 22, 2002 12:50 AM Subject: Re: [Zope] Zope Syndication "Ot Ratsaphong" <ot.ratsaphong@tpg.com.au> writes:
I contacted Soren Roug, the author of RDFSummary. The answer is:
<dtml-var "channel()['title']">
Mh, using this inside a CMF gives me an error: <H2>Site Error</H2> <P>An error was encountered while publishing this resource. </P> <P> <STRONG>Error Type: AttributeError</STRONG><BR> <STRONG>Error Value: __call__</STRONG><BR> </P> <HR NOSHADE> <P>Troubleshooting Suggestions</P> <UL> <LI>The URL may be incorrect.</LI> <LI>The parameters passed to this resource may be incorrect.</LI> <LI>A resource that this resource relies on may be encountering an error.</LI> </UL> <P>For more detailed information about the error, please refer to the HTML source for this page. </P> <P>If the error persists please contact the site maintainer. Thank you for your patience. </P> <!-- Traceback (innermost last): File /home/customers/Zope-2.4.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /home/customers/Zope-2.4.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/customers/Zope-2.4.1-linux2-x86/lib/python/Zope/__init__.py, line 226, in zpublisher_exception_hook (Object: LockableItem) File /home/customers/Zope-2.4.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 171, in publish File /home/customers/Zope-2.4.1-linux2-x86/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: index_html) File /home/customers/Zope-2.4.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: index_html) File /home/customers/Zope-2.4.1-linux2-x86/lib/python/OFS/DTMLMethod.py, line 194, in __call__ (Object: index_html) File /home/customers/Zope-2.4.1-linux2-x86/lib/python/DocumentTemplate/DT_String. py, line 546, in __call__ (Object: index_html) File /home/customers/Zope-2.4.1-linux2-x86/lib/python/OFS/DTMLMethod.py, line 187, in __call__ (Object: headlines) File /home/customers/Zope-2.4.1-linux2-x86/lib/python/DocumentTemplate/DT_String. py, line 546, in __call__ (Object: headlines) File /home/customers/Zope-2.4.1-linux2-x86/lib/python/DocumentTemplate/DT_With.py , line 148, in render (Object: dichtungdigital.rdf) File /home/customers/Zope-2.4.1-linux2-x86/lib/python/DocumentTemplate/DT_Util.py , line 231, in eval (Object: channel()['description']) (Info: channel) File <string>, line 2, in f (Object: guarded_getitem) AttributeError: (see above) --> -- Bücherwahnsinn! Was kann man ohne Angst noch lesen? http://www.sudelbuch.de/2001/20010228.html _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (2)
-
Jan Ulrich Hasecke -
Ot Ratsaphong