Bump? Could anyone clarify where TH1 'query' will be taken? Thanks,
Tomek > Date: Wed, 26 Nov 2014 10:44:34 -0500 > From: Tomek Kott <tkott.onl...@outlook.com> > To: "fossil-users@lists.fossil-scm.org" > <fossil-users@lists.fossil-scm.org> > Subject: [fossil-users] Allowed pages for th1 `query`? > Message-ID: <blu181-w4219969ae94a74c759a0768d...@phx.gbl> > Content-Type: text/plain; charset="iso-8859-1" > > Hi fossilers, > > Where can I use the th1 command `query` by default? I'm running plain vanilla > fossil 1.29 on Win7x64, and wanted to create a custom ticket report format > that is not just a plain table. I tried running a sample script: > > <th1> > set seenRow 0 > set alwaysPlaintext [info exists plaintext] > query {SELECT datetime(mtime) AS xdate, value AS xvalue, name AS xname > FROM config > WHERE name = 'ticket-common'} { > if {$seenRow} { > html "<hr>\n" > } else { > set seenRow 1 > } > > html "<h2>[htmlize $xname]</h2>" > html "<h3>Updated on: $xdate</h3>" > html "<pre>[htmlize $xvalue]</pre>" > } > </th1> > > Both under a wiki page (under plaintext, markdown, and fossil wiki styles) > and as a 'external' documentation page (markdown) under > \docs\tip\docs\query.md. > > I checked under the admin\th1 page to make sure that the th1 code is correct, > and I get an error that access to the `config` table is restricted -- that's > fine. I would expect the same error to be thrown on one of the pages I tried > if it were to work. > > Is there some setting that I missed here? I don't think `th1-hooks` is what I > need... > > Thanks, > > Tomek > > PS. Sorry for delayed responses, I'm on fossil digest mode. Please cc me for > quick response. > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > <http://lists.fossil-scm.org:8080/pipermail/fossil-users/attachments/20141126/6872cd7b/attachment.html> > > ------------------------------ > > _______________________________________________ > fossil-users mailing list > fossil-users@lists.fossil-scm.org > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users > > > End of fossil-users Digest, Vol 82, Issue 27 > ********************************************
_______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users