-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 25.01.2013 15:33, Christopher Nelson wrote: >> These are not only classes, all list items should implement the >> interface declared in the OrderedExtensionsOption definition. > > What else -- besides a class -- could implement the interface?
Right, read: only these classes implementing the respective interface. Sorry for my clumsy wording. >> Any other list item will just be ignored. > > So, if trac.ini says > > myOrderedExtensionOption = someClassName foo anotherClassName > > When I process that extension in my code, I'll get references two > two classes and Trac throws away "foo" for me? Yes. >> Note that like with the other special sub-classes of Trac's >> Option class you'll get items with matching type. From BoolOption >> you get a boolean value, here it is the (reference to the) >> extension (class) itself, not just a string with matching name. >> But the examples make this probably clear enough. > > You mean that when I do > > preprocessors = OrderedExtentionsOption(section, value, interface) > > that preprocessors is a list of objects (class instances), not > class name strings? Yes, I understood that. Otherwise I wouldn't > be able to do: > > for pp in preprocessors: pp.someFunc() Nothing else than what I wanted to say. Steffen Hoffmann -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlEC2OUACgkQ31DJeiZFuHeMdACgsVrgQ01H41ruVRT1VrBuh5Zq QMoAn0WLI8RIVjCjWUkwTg/XX8kg+qmR =i0sA -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "Trac Development" group. To post to this group, send email to trac-dev@googlegroups.com. To unsubscribe from this group, send email to trac-dev+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/trac-dev?hl=en. For more options, visit https://groups.google.com/groups/opt_out.