Check-in [5df8180404]
Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Switch from CONTENT() to TH1 [artifact $uuid] for cat/ webhook. Fix catch and continue/break handling, to avoid "Not Found" errors for existing hook page procs. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
5df81804044a1c4508df24db36c030dc |
User & Date: | mario 2015-02-09 21:41:12 |
Context
2015-02-09
| ||
22:08 | Add tktDspValue/Title backgrounds, use [setting project-description] in lieu of fx_stats table. Add hooks.th1 per default. check-in: 54cd6bbb32 user: mario tags: trunk | |
21:41 | Switch from CONTENT() to TH1 [artifact $uuid] for cat/ webhook. Fix catch and continue/break handling, to avoid "Not Found" errors for existing hook page procs. check-in: 5df8180404 user: mario tags: trunk | |
01:52 | Split up th1x into individual sections (basic control structures, str, sql functions, and github-specific ui:: functions). Rename changelog to hooks. check-in: 82270c3d74 user: mario tags: trunk | |
Changes
Changes to features/hooks.th1.
︙ | ︙ | |||
25 26 27 28 29 30 31 | puts "\n\n"; } # Alternative to /raw trunk file access without ?name=uuid, # Doesn't work with CONTENT() yet. proc webpage_cat {} { set name [getParameter name ""] | | < < < < | | | > | 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | puts "\n\n"; } # Alternative to /raw trunk file access without ?name=uuid, # Doesn't work with CONTENT() yet. proc webpage_cat {} { set name [getParameter name ""] if {![string length $name]} { puts "No filename given."; break; } query { SELECT uuid FROM blob LEFT JOIN mlink ON blob.rid=mlink.fid LEFT JOIN filename ON mlink.fnid=filename.fnid WHERE name = $name ORDER BY rid DESC LIMIT 1 } { html [artifact "$uuid"]; } } # Generate a text/uri-list for available files proc webpage_uri-list {} { query { SELECT filename.name, uuid FROM blob LEFT JOIN mlink ON blob.rid=mlink.fid LEFT JOIN filename ON mlink.fnid=filename.fnid GROUP BY filename.name ORDER BY rid DESC } { puts "$name?name=$uuid\n" } } # Invokes web request page procs proc webpage_hook {} { #if {! [anycap ro]} { break } catch { "webpage_$::web_name"; return -code 2 found; } rc if {"$rc" eq "found"} { break continue } } |