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