[Thuban-devel] Re: RfD: Support for layer specific resources
Bernhard Herzog
bh at intevation.de
Tue Jun 15 21:15:56 CEST 2004
Martin Schulze <joey at infodrom.org> writes:
> Are you looking for something like this?
>
> class foo:
> def __init__(self):
> _mapping = []
>
> def register_class_dialog(self, class, dlg_class):
> _mapping.append((class, dlg_class))
>
> def get_dialog_class(self, instance):
> return proper_class
>
> def has_dialoc_class(self, instance):
> return true or false
Yes. Although the names shouldn't be specific to dialogs. The class
should be usable for the renderes too.
Bernhard
--
Intevation GmbH http://intevation.de/
Skencil http://sketch.sourceforge.net/
Thuban http://thuban.intevation.org/
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)