On Thu, May 14, 2009 at 7:21 AM, eri x <[email protected]> wrote: > Hi, i am trying to read a section from the trac.ini, i called it > [prova_ticket-workflow] but the problem is that when i try to read with > section = self.config._sections['prova_ticket-workflow'] trac gives me this > error: > KeyError: 'prova_ticket-workflow' > With the same code it works when i read [ticket-workflow]. > The [prova_ticket-workflow] section is the same as [ticket-workflow]. > Now i am tryin only to read the section and i am not doing any operation > with the workflow. > Regars Ermal
Well, as the leading underscore on ._sections should suggest, it's not really how individual sections are meant to be accessed. Try self.config['section_name']. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Development" 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-dev?hl=en -~----------~----~----~----~------~----~------~--~---
