Changeset 3304
- Timestamp:
- 06/24/08 07:24:53 (7 months ago)
- Files:
-
- trunk/projects/lisp-ecoop/src/handlers.lisp (modified) (1 diff)
- trunk/projects/lisp-ecoop/src/init.lisp (modified) (2 diffs)
- trunk/projects/lisp-ecoop/src/tags.lisp (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/projects/lisp-ecoop/src/handlers.lisp
r2660 r3304 70 70 (unless (submission-edit-permitted-p submission) 71 71 (error "can't edit this submission")) 72 (ecase (request-method )72 (ecase (request-method*) 73 73 (:post 74 74 (when (request-uploaded-file "document") trunk/projects/lisp-ecoop/src/init.lisp
r2531 r3304 2 2 3 3 (defun startup () 4 (when *store* 5 (close-store)) 4 (close-store) 6 5 (make-instance 'store 7 6 :directory *store-directory* … … 16 15 #+(or) 17 16 (bknr.cron:start-cron) 18 17 19 18 (publish-lisp-ecoop) 20 19 trunk/projects/lisp-ecoop/src/tags.lisp
r2873 r3304 33 33 (html (:h2 "can't edit this profile")) 34 34 (return-from profile-editor)) 35 (when (eq :post (request-method ))35 (when (eq :post (request-method*)) 36 36 (with-query-params (action) 37 37 (format t ";; ACTION ~A~%" action) … … 71 71 (html ((:script :language "JavaScript") "alert('Invalid file format of uploaded, only PDF files are accepted')"))))))) 72 72 (when (request-uploaded-file "picture") 73 (let ((picture (import-image (pathname (request-uploaded-file "picture"))))) 73 (let* ((upload (request-uploaded-file "picture")) 74 (picture (import-image (pathname (upload-pathname upload)) 75 :type (pathname-type (upload-original-filename upload))))) 74 76 (with-transaction ("updating participant picture") 75 77 (when (participant-picture participant) … … 113 115 (html (:h2 "can't edit this submission")) 114 116 (return-from submission-editor)) 115 (when (eq :post (request-method ))117 (when (eq :post (request-method*)) 116 118 (with-query-params (action) 117 119 (case (make-keyword-from-string action) … … 194 196 (dolist (participant (set-difference (class-instances 'participant) submitters)) 195 197 (html (:li ((:a :href (format nil "~A?add-submitter-id=~A" 196 (script-name )198 (script-name*) 197 199 (store-object-id participant))) 198 200 (:princ-safe (user-full-name participant))))))))) … … 201 203 (:ul 202 204 (dolist (participant submitters) 203 (html (:li ((:a :href (format nil "~A?remove-submitter-id=~A" (script-name ) (store-object-id participant)))205 (html (:li ((:a :href (format nil "~A?remove-submitter-id=~A" (script-name*) (store-object-id participant))) 204 206 (:princ-safe (user-full-name participant)))))))))))))) 205 207 … … 301 303 (t 302 304 (html ((:form :method "post" :action (website-make-path *website* "logout")) 303 ((:input :type "hidden" :name "url" :value (script-name )))305 ((:input :type "hidden" :name "url" :value (script-name*))) 304 306 (:div "Logged in as " :br 305 307 ((:a :href (format-object-id "/edit-profile/~A" user)) … … 317 319 318 320 (define-bknr-tag schedule-submission () 319 (when (eq :post (request-method ))321 (when (eq :post (request-method*)) 320 322 (with-query-params (date time duration submission freetext) 321 323 (let ((start (parse-time (format nil "~A ~A" date time) :default-zone -2)) ; XXX hardcoded time zone
