I suspect that the ticket{} elements are present in the req, too, but as
I can't see the structure of req I don't know.

 

________________________________

From: [email protected] [mailto:[email protected]]
On Behalf Of Dan Winslow
Sent: Wednesday, June 17, 2009 7:31 AM
To: [email protected]
Subject: [Trac] Re: access to the ticket array

 

...

Ok, I am trying to access the ticket[] elements. How might I do that?

 

________________________________

From: [email protected] [mailto:[email protected]]
On Behalf Of Noah Kantrowitz
Sent: Tuesday, June 16, 2009 4:04 PM
To: [email protected]
Subject: [Trac] Re: access to the ticket array

 

Please ask questions about what you actually trying to _do_, not
specific implementation details.

 

--Noah

 

From: [email protected] [mailto:[email protected]]
On Behalf Of Dan Winslow
Sent: Tuesday, June 16, 2009 1:52 PM
To: [email protected]
Subject: [Trac] access to the ticket array

 

I am in some plugin source, and I would like to access the ticket[]
array. It's not available in the class I am in :

 

class TicketTweaks(Component):

    implements(ITemplateStreamFilter, ITemplateProvider,
IPermissionRequestor)

 

I am guessing because it does not do some of this ( from another plugin
)

 

from trac.core import *

from trac.ticket import ITicketManipulator

from trac.ticket import TicketSystem

 

class RequiredFieldValidator(Component):

    """Basic ticket validator for required fields"""

 

    implements(ITicketManipulator)

 

I guess this because the ticket[] array *is* visible in the second
plugin. Can I just add the import for trac.ticket.TicketSystem? Or must
I also implement the ITicketManipulator interface?

 

Dan Winslow
Director of Information Technology, AIM INSTITUTE
1905 Harney Street, Suite 700
Omaha, NE 68102
402-345-5025 x156
[email protected]
www.aiminstitute.org

 

 

 

 






--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to