[Zope-dev] Re: ZPatterns.. Property sheets... once and for all. ;-)

2000-08-24 Thread Steve Alexander

Steve, 

Ok, it is a bug in manage_tabs.

Here's a proper fix:

  dtml-if manage_options
  dtml-with "_(option=manage_options[a_])"
  dtml-if "option.has_key('help')"
  td align="right" valign="top"
  dtml-var "HelpSys.button(HelpSys, REQUEST, 
  product=option['help'][0],
  topic=option['help'][1])"
  /td
  /dtml-if/dtml-with/dtml-if

Replace the dtml-comment with dtml-if manage_options and
/dtml-comment with /dtml-if.

I'm putting this in the Collector.

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] Re: ZPatterns.. Property sheets... once and for all. ;-)

2000-08-24 Thread Steve Spicklemire


Cool! Thanks Steve.. I'll give that a try.

I guess the question behind the question though is  is this a
reasonable way to handle property sheets?  Is this how the designers
of ZPatterns envision property sheets will be used? I keep getting
the feeling that I'm missing a basic 'grokism' of the technology and
I keep expecting to get hit over the head with it but I don't.

Anyway.. thanks for tracking down the traceback... 

-steve

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] Re: ZPatterns.. Property sheets... once and for all. ;-)

2000-08-24 Thread Steve Alexander

Steve Spicklemire wrote:
 
 Cool! Thanks Steve.. I'll give that a try.
 
 I guess the question behind the question though is  is this a
 reasonable way to handle property sheets?  Is this how the designers
 of ZPatterns envision property sheets will be used?

I think so.

You add PropertySheets to a DataSkin, and the sheets' data get handled
by SheetProviders.

You can use triggers or custom sheet providers to add sheets to an
object if that object meets certain criteria. The object need not know
it has had those sheets added. The object plays different roles with
different specialists.

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )