Strip-o-Gram is an HTML Conversion Library that can convert HTML to Plain Text and strip specified tags from HTML. See http://www.zope.org/Members/chrisw/StripOGram for more details. cheers, Chris
I'm letting "untrusted" visitors post HTML by the use of StructuredText rules. If they create some <h3> or <pre> tags I don't care, but I don't want people to be able to post rendered <textarea cols=100 rows=100> (with no closing tag) for example. Is Strip-o-Gram the thing for me then? ...or do I have to read up a bit more on the use of StructuredText? Peter ----- Original Message ----- From: "Chris Withers" <chrisw@nipltd.com> To: <python-list@python.org>; <zope@zope.org> Sent: Monday, August 20, 2001 1:35 PM Subject: [Zope] Strip-o-Gram 1.0 Released!
Strip-o-Gram is an HTML Conversion Library that can convert HTML to Plain Text and strip specified tags from HTML.
See http://www.zope.org/Members/chrisw/StripOGram for more details.
cheers,
Chris
_______________________________________________ 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 )
Peter Bengtsson wrote:
I'm letting "untrusted" visitors post HTML by the use of StructuredText rules. If they create some <h3> or <pre> tags I don't care, but I don't want people to be able to post rendered <textarea cols=100 rows=100> (with no closing tag) for example.
Is Strip-o-Gram the thing for me then?
Yup, Squishdot uses it for exactly that with Structured Text postings :-) Chris
Is their an example of using the calendar tag where the calendar entries are using a SQL database? I'm having trouble getting date based queries to work with MySql and also in understanding where the queries should go in my DTML method that include the calendar tag.
Here's an example that I'm currently developing to display an Outlook Calendar that has been exported to an MSAccess database. The Access ODBC query 'DateLookup' is: select Subject, StartDate, EndDate, Location, Description, Showtimeas from Calendar where StartDate <= #<dtml-var "ThisDate" fmt="%m/%d/%Y" sql_quote> 12:01:00 AM# and EndDate >= #<dtml-var "ThisDate" fmt="%m/%d/%Y" sql_quote> 11:59:00 AM# The DTML is: <dtml-call "REQUEST.set('colorAssignment',{})"> <dtml-call "REQUEST.set('nextColor',0)"> <dtml-calendar weekdays="07"> <dtml-call "setCalendar('bordercolor', '0000CC')"> <dtml-call "setCalendar('spacing', '2')"> <dtml-call "setCalendar('padding', '2')"> <dtml-call "setCalendar('valign', 'top')"> <dtml-if "_.DateTime.isCurrentDay(date) and _.DateTime.isCurrentMonth(date) and _.DateTime.isCurrentYear(date)"> <dtml-call "setCalendar('cellbgcolor', 'CCCCCC')"> </dtml-if> <span style="font-size: 9pt; font-weight: bold; font-family: Verdana, Helvetica, sans-serif;"> <dtml-var date fmt=%d> </span> <dtml-call "REQUEST.set('ThisDate', date)"> <dtml-in DateLookup sort=Showtimeas> <dtml-call "REQUEST.set('statusColor',StatusColors[0])"> <dtml-if Showtimeas> <dtml-call "REQUEST.set('statusColor',StatusColors[_.int(Showtimeas)])"> </dtml-if> <span style="font-size: 8pt; font-family: Verdana, Helvetica, sans-serif; color: black; background-color: #<dtml-var statusColor>;"> <br><A onMouseOver="return overlib('Show time as: <dtml-var "ShowTimeAsText[Showtimeas]"> (<dtml-var Showtimeas>)', RIGHT);" onMouseOut="nd();"><dtml-var Subject></A><br> </span> </dtml-in> </dtml-calendar> -- HTH -- Loren
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Frank McGeough Sent: Monday, August 20, 2001 06:26 To: zope@zope.org Subject: [Zope] Calendar tag backed by database?
Is their an example of using the calendar tag where the calendar entries are using a SQL database? I'm having trouble getting date based queries to work with MySql and also in understanding where the queries should go in my DTML method that include the calendar tag.
On Monday 20 August 2001 21:26, Frank McGeough wrote:
Is their an example of using the calendar tag where the calendar entries are using a SQL database? I'm having trouble getting date based queries to work with MySql and also in understanding where the queries should go in my DTML method that include the calendar tag.
have a look see www.zope.org/Members/kedai/SempoiCalendar it's using the Calendar tag with rdb
participants (5)
-
bak -
Chris Withers -
Frank McGeough -
Loren Stafford -
Peter Bengtsson