[Zope-CMF] CMFTopic problem, passing args in DTML, or just brain damage?

marc lindahl marc@bowery.com
Fri, 18 May 2001 21:12:16 -0400


> From: Tres Seaver <tseaver@digicool.com>
> 
> Because you were visiting the topic's default view
> ('topic_view'), with the REQUEST populated with a form variable,
> 'Subject', set to 'something.  Because you reached 'list' via URL
> traversal, ZPublisher is helping out by finding some appropriate
> default method to call on it.

Interesting!  Where do I look in the source for background?  And, do you
have a suggestion of how I could do this from a DTML method?  I tried
<OBJECT data="/list?Subject=something"></OBJECT>, that didn't work...

The background of this is, I'm interested in using CMFTopic as a sort of
tree to get lists of stuff on the site, progressively refined.  But I have a
group of subjects which act as 'modifiers' so they are at the leaves of
every branch.  A pain to construct, so I though I could leave off the leaves
and use that question mark business... which works great from a URL.

Otherwise, I'm about to give up on CMFTopic for this purpose, and just do my
own catalog queries.  Not a big deal, really... news_box is the example I'm
following.


> 
>> By signature you mean list(_.None,_) ?
> 
> Right -- signature is name of the function, plus arguments and
> return type.  In this case, since 'list' is not callable, I'm
> surprised you didn't get a TypeError.

Sorry, I mistyped - I used "list.topic_view(_.None,_)", and variations.