-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Apr 28, 2007, at 3:35 PM, Noah Kantrowitz wrote: > The main difference is that the descriptor classes (Option, etc) > have a registry system behind the scenes. This is what enabled the > TracIni macro, and the IniAdmin plugin. If possible use the > descriptor classes, but in some cases you need to access the > options dynamically. In this case use a similar approach to the > SMTP settings in trac.notification, make a dummy plugin that has > descriptors for each option (to make them show up in things using > the Option registry), and then use self.config['section']['option'] > in your code.
Thanks for the quick response -- this was very helpful. > PS: If you have questions about plugin development and it is > between 10AM and 12AM GMT-5 (roughly, my sleep schedule is erratic > to say the least), feel free to drop by #trac and ask. At this point I feel like I have some more homework to do reading the source and online docs, but if I have a question worth asking, I'll try #trac. - -- Phil -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (Darwin) iD8DBQFGNGM+ZApVP6eGoWwRAoYTAKDnaJu56R4XNs/B6z5Ymde5hp6NgACgy5X3 uqjpwdk9ORYSfpJAQHhP9vU= =F14M -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---
