Hi ! On 9/27/12, Christopher Nelson <[email protected]> wrote: > Am I crazy or would it be useful to be able to embed the tabular > output of a report in a wiki page?
You are not ... or maybe we both are :P > I know there's [[TicketQuery()]] > but that lacks the power and flexibility of the SQL you can put in a > report specification. I imagine something like > [[EmbedReport(24,USER=chrisn)]] to embed the equivalent to > "https://trac.sixnetio.com/trac/report/59?USER=chrisn" in a wiki page. > I looked around Trac-Hacks and didn't find anything like it. Maybe I > looked to quickly. > If u were using Bloodhound u could do that by using WidgetMacro [1]_ to render TicketReport widget . It will look something like this [[Widget(TicketReport, id=6, page=3, user=olemis)]] Below I paste parameter definitions for that widget . Notice that only id argument is required . {{{ #!py def get_widget_params(self, name): """Return a dictionary containing arguments specification for the widget with specified name. """ return { 'id' : { 'desc' : """Report number""", 'required' : True, 'type' : int, }, 'page' : { 'default' : 1, 'desc' : """Retrieve results in given page.""", 'type' : int, }, 'user' : { 'desc' : """Render the report for a given user.""", }, } }}} I'm thinking this is not OT because , in the end , Bloodhound is Trac 1.0 ... and something more ... ;) .. [1] #138 Widgets wiki macro (https://issues.apache.org/bloodhound/ticket/138) PS: BTW , WidgetMacro has not being commited yet onto ASF repository , but it will be there in source tarball for 0.2.0 ... hopefully coming soon . So at the moment patch(es) submitted to that ticket and screenshot is the best I can show you . Once it will be committed I'll provide some examples to you if still interested on this subject . ;) -- Regards, Olemis. Blog ES: http://simelo-es.blogspot.com/ Blog EN: http://simelo-en.blogspot.com/ Featured article: -- 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.
