Re: [Zope] Using Structured Text and HTML-quote together for RSS 2.0

2005-09-15 Thread Chris Withers
Jonathan Cyr wrote: I appreciate the amount of effort that you contribute to the community... but that said... you really are quite rude and obnoxious hence the "Go easy" warning. Some might say you are being rude and obnoxious by deliberately ignoring good advice and continuingto whinge

Re: [Zope] Using Structured Text and HTML-quote together for RSS 2.0

2005-09-15 Thread Chris Withers
(and after the flame bait, something real to argue with) Jonathan Cyr wrote: Happy to have the choice, don't get me wrong. I found DTML very easy, I'm old school and generate all of my HTML/CSS by hand. Indeed, generating HTML by hand is specifcally why I use ZPT. The well-formed-ness and as

Re: [Zope] Using Structured Text and HTML-quote together for RSS 2.0

2005-09-09 Thread David H
Does this affect Chris's chances in the annual "Zope Cogeniality Awards"?  BTW DTML does not suck.  I too have written lots of code w/it.  I do find ZPT to be preferable - but it does take effort (brain re-wiring) and if your up to your elbows in alligators its just not the time to convert.

Re: [Zope] Using Structured Text and HTML-quote together for RSS 2.0

2005-09-09 Thread Jonathan Cyr
Hi Peter, Happy to have the choice, don't get me wrong.  I found DTML very easy, I'm old school and generate all of my HTML/CSS by hand.  In addition to CSS, I've found it pretty good for inserting items into _javascript_, Applet and Embed elements.  I find that I'm attuned to a tag system

Re: [Zope] Using Structured Text and HTML-quote together for RSS 2.0

2005-09-09 Thread Jonathan Cyr
Dude, I appreciate the amount of effort that you contribute to the community... but that said... you really are quite rude and obnoxious hence the "Go easy" warning. Your skills in dealing with people pale in comparison to your Zope prowess.  Talking down to people doesn't build community

Re: [Zope] Using Structured Text and HTML-quote together for RSS 2.0

2005-09-09 Thread Chris Withers
Jonathan Cyr wrote: I have to choose which features of Zope to learn and use, based on a much larger criteria than I can present here. I do not wish to mix ZPT and DTML in my project... I had chosen DTML, before ZPT was mature... It may be better, but I don't care for now... when I'm able to re

Re: [Zope] Using Structured Text and HTML-quote together for RSS 2.0

2005-09-08 Thread Peter Bengtsson
Chris was merely suggesting. Technically ZPT is probably a better choice but DTML is pretty good too. On many of my projects that I started a longer time ago the less important templates were written in DTML because to me it was faster to write and the crucial ones that needed to last longer and mi

Re: [Zope] Using Structured Text and HTML-quote together for RSS 2.0

2005-09-08 Thread Jonathan Cyr
Thanks... but go easy. I have to choose which features of Zope to learn and use, based on a much larger criteria than I can present here.  I do not wish to mix ZPT and DTML in my project... I had chosen DTML, before ZPT was mature... It may be better, but I don't care for now... when I'm abl

Re: [Zope] Using Structured Text and HTML-quote together for RSS 2.0

2005-09-08 Thread Jonathan Cyr
That's the ticket.  You're right the CDATA solution is much better than html-quote'ing everything. Many thanks, -Jon Peter Bengtsson wrote: Create a python script called rssFormatter(text):: from Products.PythonScripts.standard import structured_text, html_quote return html_quote(structu

Re: [Zope] Using Structured Text and HTML-quote together for RSS 2.0

2005-09-08 Thread Chris Withers
Jonathan Cyr wrote: I am constructing an RSS 2.0 feed for a zope app. I am creating the rss.xml file in a DTML method. Use ZPT, it's much better suited to this... to include in the feed is a structured-text paragraph. To use any XHTML in a feed you must "html_quote" all of the extended ch

Re: [Zope] Using Structured Text and HTML-quote together for RSS 2.0

2005-09-07 Thread Peter Bengtsson
Create a python script called rssFormatter(text):: from Products.PythonScripts.standard import structured_text, html_quote return html_quote(structured_text(text)) Which you use later as I think for some of my RSS feeds I use CDATA, so _my_ rssFormatter() script looks something like this:: ret

[Zope] Using Structured Text and HTML-quote together for RSS 2.0

2005-09-07 Thread Jonathan Cyr
Hello, I can't seem to find this anywhere. I am constructing an RSS 2.0 feed for a zope app. I am creating the rss.xml file in a DTML method. One of the information elements I wish to include in the feed is a structured-text paragraph. To use any XHTML in a feed you must "html_quote" all o