durusmail: quixote-users: DynamicExportingDirectory usage
DynamicExportingDirectory usage
2005-07-22
2005-07-23
Re: DynamicExportingDirectory usage
2005-07-25
2005-07-25
2005-07-25
DynamicExportingDirectory usage
Roger E. Masse
2005-07-23
>  I am poking around in Toboso and Dulcenia. I am trying to get the
> crums library to work. The problem that I am having is that I am not
> getting the second level of crumbs to work. They are not being written
> out in the html.
>
> I was reading throug the source code to try to figure out what I am
> doing wrong and I ran into the check for the dynamic directory. I
> looked at the code in Dulcinea ui user user and now I am throughly
> confused.
>
> Do you use the dynamic directory as a replacement for Quixote's directory?

Yes.  to get the full crumb support implemented in dulcinea.ui.crumbs you
need
to use DynamicExportingDirectory instead.

> The code for crumbs also as code for building the reference without
> using the dynamic directory. What signature is needed for the Quixote
> directory to work?

I'm sorry, I don't think I understand what you are asking.  The calling
signature
(e.g. lookup and traversal) for a DynamicExportingDirectory is the same as
Quixote
Directory.  DynamicExportingDirectory replaces _q_exports class variable
with a
get_exports method which returns a sequence of 4-tuples: (component, name,
crumb, title)
to be exported.  This is used to generated the suckerfish-style menus.

     -Roger

reply