I'd like to write a new-style (v0.11, expand_macro) plug-in to return all the
open and closed tickets for a given milestone:
  [[MilestoneInfo(Foo_2.1, Foo_2.0)]]
(the second arg is the version to use when submitting a new ticket, see below)

I'd like it to do exactly what this wiki markup does:

=========================
Foo 2.1:

'''Open tickets:'''
[[TicketQuery(milestone=Foo_2.1&status!=closed)]]

'''Closed tickets:'''
[[TicketQuery(milestone=Foo_2.1&status=closed)]]

You can submit a
[http://www/trac/newticket?milestone=Foo_2.1&component=Foo&version=Foo_2.0 new
ticket] here.
=========================

Can I just have my macro expand the above wiki text after appropriate string
substitution, or do I need to do the ticket queries myself using sql, and
build up the resulting HTML? (I hope not)

In other words, what should expand_macro return?  Wiki markup, or HTML?  Is
there recursive macro-expansion in trac?

-- 
Gary

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
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