Overview
Comment: | Merged in some forgotten changes |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
88e690f24207405d267bc742736101b4 |
User & Date: | matt on 2017-03-03 13:37:30 |
Other Links: | manifest | tags |
Context
2017-03-07
| ||
20:36 | Minor cleanup of example in howto.txt and changed s:local-set to s:lset check-in: fd0492638e user: matt tags: trunk | |
2017-03-03
| ||
13:37 | Merged in some forgotten changes check-in: 88e690f242 user: matt tags: trunk | |
2017-02-28
| ||
23:07 | Added script override check-in: d55d5a7926 user: mrwellan tags: trunk | |
Changes
Modified doc/howto.txt from [08742b584b] to [9c23d6441d].
︙ | |||
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | + + + + + + + + + | (s:set! key val) (s:get key) make a selection drop down ~~~~~~~~~~~~~~~~~~~~~~~~~~ ;; items is a hierarchial alist ;; ( (label1 value1 dispval1 #t) ;; <== this one is selected ;; (label2 (label3 value2 dispval2) ;; (label4 value3 dispval3))) In view.scm: ;; Label Value visible-str selected (s:select '(("World" 0)("Country" 1)("State" 2 "The state" #t )("Town/City" 3)) 'name 'scope) Visible str will be shown if provided. Selected will set that entry to pre-selected. To select a specific entry: (s:select '(("World" 0 "world" #f)("Country" 1 "country" #t)("State" 2 "state" #f)("Town/City" 3 "town" #f)) 'name 'scope) In control.scm: (let ((scope (s:get-input 'scope)) (scope-num (s:get-input 'scope 'number))) ;; 'number, 'raw or 'escaped .... The optional fourth entry sets that item as selected if true |
︙ |
Modified misc-stml.scm from [3b3dec56b0] to [9856caabb9].
︙ | |||
8 9 10 11 12 13 14 15 | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | + - - | ;; PURPOSE. ;;====================================================================== ;; dumbobj helpers ;;====================================================================== (declare (unit misc-stml)) (use regex (prefix dbi dbi:)) (use (prefix crypt c:)) |
︙ |
Modified session.scm from [4981000328] to [107551e843].
1 2 3 4 5 6 7 8 9 10 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | - - | ;; Copyright 2007-2011, Matthew Welland. ;; ;; This program is made available under the GNU GPL version 2.0 or ;; greater. See the accompanying file COPYING for details. ;; ;; This program is distributed WITHOUT ANY WARRANTY; without even the ;; implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ;; PURPOSE. (declare (unit session)) |
︙ | |||
235 236 237 238 239 240 241 | 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 | - + - - + + - + - + | (define (session:make-cookie self) ;; (list (conc "session_key=" (sdat-get-session-key self) "; Path=/; Domain=." (sdat-get-domain self) "; Max-Age=" (* 86400 14) "; Version=1"))) ;; According to ;; http://www.codemarvels.com/2010/11/apache-rewriterule-set-a-cookie-on-localhost/ ;; Here are the 2 (often left out) requirements to set a cookie using |
︙ |