Re: Re: DynamicExportingDirectory usage

David Binger <[email protected]>
Newsgroups gmane.comp.web.quixote.user
Message-ID <[email protected]>
On Jul 25, 2005, at 10:36 AM, David Driver wrote:


> When you are using quixote.directory.directory _q_exports can point to
> things that are not listed in the crumbs. Things like favicon.ico and
> CSS.
>
> How do you get around that with the dynamic directory?
>

Use None as the value of the crumb field.
For example,
   def get_exports(self):
      yield ("favicon.ico", "favicon_ico", None, None)

where favicon_ico is a StaticFile instance, or a method that
returns the response you want for that request.



>
> Also is this why Toboso's root directory is a normal quixote  
> directory?
>

No, it is just that Toboso hasn't been updated.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.