In plugin code, I am trying to access the value of the 'owner' field.
Can anyone guide me on how to do this? My latest attempt is
from trac.ticket.model import Ticket
...
try:
tkt = Ticket(self.env, res.id)
except TracError:
return None # Ticket doesn't exist
disabled = True
which almost works....except at runtime it says that 'NameError: global
name 'res' is not defined'. The 'res' is not currently passed into the
method I am in
( def filter_stream(self, req, method, filename, stream, data): ).
If there's a better way, in code, to obtain the value of the current
ticket 'owner', please let me know.
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
-~----------~----~----~----~------~----~------~--~---