On Saturday 13 September 2008 23:15:23 River Tarnell wrote:
Nikola Smolenski:
nikola@kompjuter:/ram> wget http://toolserver.org/~river/reports/
look at the local directory ~river/reports, not the URL.
(i.e.: /home/river/reports/)
Ah, OK. (BTW, now the tool itself doesn't work...)
I imagined a different syntax, similar to wikisyntax, but this is fine too. To comment on it:
# First, one should be able to include comments, for example like this :) %name Last 100 edits %description Shows the last 100 edits for a user %category Users # Probably, this should be changed into 'categories', as one tool can # realistically be in several categories, as is the case with Interiot's tstoc
%query SELECT page_namespace, page_title, rev_timestamp FROM page, revision WHERE rev_user_text=%(username)s AND rev_page=page_id ORDER BY rev_timestamp DESC LIMIT 100 %end # I don't understand, in %(username)s what is the 's' at the end doing? # Also, there is some potential for clash here, as % is modulo operator in # MySQL. It will be rarely used, but still...
%variable username, username, Username # The final Username is name displayed in the form, but what are the first # two? # Also, what is needed is the ability to specify variable type. Username # could be of type 'text', but there is also need for booleans (checkbox), # arrays (radio buttons), maybe more.
%fields page, Page, page_namespace, page_title timestamp, Time, rev_timestamp %end # I don't understand this, as I can't look at the tool's output. # I imagined that here, one would be able to specify patterns that would # shape the output, similar to %query. For example: # %report # html: <td><a href="http://%(wiki_url)/wiki/%(page_title)">%(page_title)</a></td> # wiki: * [[%(page_title)]] # %end # Variable names here would be column names from the query, + variable names # from the form, given in %variable, + "magic" variables like this %(wiki_url)
%variable username, username, Username # Don't get why is this repeated.
One more thing is that the list of wikis should be handled better, and should be on the same page as other form elements.
Also, how are new reports made by different users going to be handled? Everyone would just put them in reports directory in his home dir?