durusmail: quixote-users: Re: DynamicExportingDirectory usage
DynamicExportingDirectory usage
2005-07-22
2005-07-23
Re: DynamicExportingDirectory usage
2005-07-25
2005-07-25
2005-07-25
Re: DynamicExportingDirectory usage
David Binger
2005-07-25
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.


reply