Hi!
Got the new version up and running with my own ticket-workflow. And it
is really good!
I have some suggestions for further improvements.
1. Make the state transition dependant on group membership in addition
to the boiled down group permissions.
For example then it would be possible to:
disapprove = solved -> reopened
disapprove.name = Disapprove Solution
disapprove.permissions = user_group
# instead of
#disapprove.permissions =TICKET_APPEND
disapprove.operations = del_owner
2. The del_owner operation should default back to component owner (if
applicable) or its its an operation of its own like:
elif operation == 'set_owner_to_component_owner':
# Set the owner to the component owner
components = model.Component.select(self.env);
options = [ticket['component'] for val in
model.Component.select(self.env)]
if val.owner:
updated['owner'] = val.owner
else:
raise TracError('Failed to find owner for
component.' % (ticket['component']), 'Invalid Operation')
3. Add a back_to_reporter operation that gives the ownership back to
the reporter in the case when a reporter forgot to provide
information.
elif operation == 'set_owner_to_reporter':
# Set the owner to the reporter
if ticket['reporter']:
updated['owner'] = ticket['reporter']
else:
raise TracError('Failed to find reporter for
ticket.' % (ticket['reporter']), 'Invalid Operation')
/Jim
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---