durusmail: quixote-users: Config subclassing
Config subclassing
2002-06-20
2002-06-21
2002-06-21
Config subclassing
Mikhail Sobolev
2002-06-21
On Fri, Jun 21, 2002 at 08:19:26AM -0600, Jonathan Corbet wrote:
> > So the question is: what is the correct way for handling additional
> > configuration parameters?
>
> You're almost there.  You need to create an instance of your configuration
> subclass, and use it when you create your publisher.  Taking the example
> from the docs, your driver script would have:
>
>       app = Publisher("quixote.demo")
>
> Tweak that to be:
>
>       app = Publisher("quixote.demo", config = OopsConfig ())
>
> At least...that's how I did it...
Thanks for the suggestion.  This is the way how I did that. :))

--
Misha



reply