durusmail: quixote-users: Config subclassing
Config subclassing
2002-06-20
2002-06-21
2002-06-21
Config subclassing
Jonathan Corbet
2002-06-21
> 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...

jon

Jonathan Corbet
Executive editor, LWN.net
corbet@lwn.net



reply