I know I can't guarantee the order of ticket change listeners but if I
have one that depends on another, is there some way that I can requeue
the current listener if it detects the other hasn't run yet?
In Tcl you can add something to the event queue with `after idle`.
Off the top of my head (I haven't written Tcl in years), it'd be like:
func myEventHandler(a, b, c) {
# If our predecessor hasn't executed yet
if [ ! someCondition ] {
# Reschedule this invocation to be run when the interpreter
# is idle (all other events have been processed)
after idle $*
}
else {
... real event handling here
}
}
That'd be a great solution here but I don't know how to do that in Trac.
Chris
--
A: Top-posting.
Q: What is the most annoying thing in e-mail?
--
You received this message because you are subscribed to the Google Groups "Trac
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-dev.
For more options, visit https://groups.google.com/d/optout.