[Zope-dev] Method LookUp

Bill Anderson bill@libc.org
Thu, 27 Apr 2000 10:37:15 -0600


Stephan Richter wrote:
> 
> At 11:31 AM 4/27/00 +0200, Andre Schubert wrote:
> >Hi,
> >
> >I have a little problem but i have no solution for this. I have a
> >project, with many subfolders and their own manager.
> >These managers can add a method called local_nav, where they can store
> >their local navigation-infos. The standard_header-method should look for
> >this local_nav method only in the current folder, but if there is no
> >local_nav, then the local_nav-method of the parent folder would be
> >opened.
> >
> >I use this code to look after local_nav:
> >
> >      <dtml-with title_or_id only>
> >      <dtml-if local_nav>
> >       <dtml-in local_nav>
> >        <a href="<dtml-var sequence-item>"><dtml-var sequence-key></a>
> >       </dtml-in>
> >      </dtml-if>
> >      </dtml-with>
> 
> Please provide the traceback. You said local_nav is a method, but you
> cannot use DTML-IN on a method....

 .... If I am not mistaken: if it returns a list, you can.


-- 
In flying I have learned that carelessness and overconfidence are 
usually far more dangerous than deliberately accepted risks. 
          -- Wilbur Wright in a letter to his father, September 1900