Guest User

Untitled

a guest
Sep 18th, 2013
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scheme 0.96 KB | None | 0 0
  1. ;; defines a folderlist-page
  2. (define (render-folderlist-page request user-identification project-id sector-id subsector-id)
  3.   (local [(define (response-generator make-url)
  4.        (response/xexpr
  5.         `(html (head (title ,(get-project-name-from-project-id project-id)))
  6.                (body (form
  7.                         ((action ,(make-url control-forms)))
  8.                         (...)
  9.       (define (control-forms request)
  10.         (let ([submittype (extr-bind-sing 'submit request)])
  11.           (cond [(equal? submittype "AddFolder") (decide-which-form-to-see (...)
  12.                 [(equal? submittype "Logoff") (log-me-out (...)
  13.                 [(equal? submittype "GotoAdminProjectlist") (render-admin-projectlist (...)
  14. (send/suspend/dispatch response-generator)
  15.     (render-entry-page request))))
  16.  
  17. ;; takes a symbol and a request and returns the single binding
  18. (define (extr-bind-sing symb request)
  19.   (extract-binding/single symb (request-bindings request)))
Advertisement
Add Comment
Please, Sign In to add comment