[Zope-PTK] Membership separate from Portal?

Tres Seaver tseaver@palladion.com
Tue, 15 Feb 2000 23:32:38 -0600


Kevin Dangoor wrote:
> 
> ----- Original Message -----
> From: "Tres Seaver" <tseaver@palladion.com>
> To: "Kevin Dangoor" <kid@kendermedia.com>
> Cc: "Mike Pelletier" <mike@digicool.com>; <zope-ptk@zope.org>
> Sent: Tuesday, February 15, 2000 12:28 PM
> Subject: Re: [Zope-PTK] Membership separate from Portal?
> 
> > I have a dead-simple STX_Document ZClass which I use for this.  It has two
> > properties, title and body_stx, and uses the following for its index_html
> > method::
> >
> >   <dtml-var standard_html_header>
> >
> >   <h2> <dtml-var title> </h2>
> >
> >   <dtml-var body_stx fmt=structured-text>
> >
> >   <dtml-var standard_html_footer>
> >
> > I guess I could package it up as a Product (it is currently buried in a
> > "utility" Product I have).  Another useful feature might be a "STX Help"
> tab,
> > which demoed the syntax.
> 
> This sounds like something people would like. I agree that this is really,
> really simple. But, I've seen people coming from Frontierland and wondering
> why they need to include <dtml-var standard_html_header> when Frontier
> automatically includes headers and footers...
> 
> An STX_Document class is also useful because otherwise you need to make a
> separate method to render the doc out to HTML, which seems a little hokey.
> 
> Aren't ZClasses great?
> 
> Kevin

OK, it is up at:

  http://www.zope.org/Members/tseaver/STX_Document/

It is CatalogAware, and has a Help tab which dumps the documentation from the
StructuredText docstrings.

Let me know how it works,

Tres.
-- 
=========================================================
Tres Seaver         tseaver@palladion.com    713-523-6582
Palladion Software  http://www.palladion.com