Have you seen: http://trac-hacks.org/wiki/VirtualTicketPermissionsPlugin ?
Cheers / Erik On Wed, Oct 27, 2010 at 3:14 PM, Christian Unger <[email protected]>wrote: > > Hi, > > so I am trying to enforce a workflow where the component owner is the one > to decide who to escalate a ticket to. > I have modified virtualpermissions.py to contain a > TICKET_IS_COMPONENT_OWNER permission and set this in my workflow > > assign = new -> analyze > assign.name = Assign > assign.operations = set_owner > assign.permissions = TICKET_IS_COMPONENT_OWNER > > but my modified script throws > AttributeError: 'Component' object has no attribute 'owner' > > > the code looks like so: > > if action == 'TICKET_IS_COMPONENT_OWNER': > component = Component(self.env, tkt['component']) > return perm.username == component.owner > > > Obviously I can`t ask component for owner. > I would really appreciate if somone with more insight could shed some light > here. > > > Thanks in advance. > > __ > cu > christian unger > > > > > > > > -- > 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]<trac-users%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/trac-users?hl=en. > -- 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.
