Changeset 2417
- Timestamp:
- 01/29/08 13:19:19 (1 year ago)
- Files:
-
- branches/trunk-reorg/bknr/datastore/patches/patch-around-mop-cmucl19.lisp (moved) (moved from branches/trunk-reorg/bknr/datastore/patches/patch-around-mop-cmucl19a.lisp) (1 diff)
- branches/trunk-reorg/bknr/datastore/src/bknr-utils.asd (modified) (1 diff)
- branches/trunk-reorg/bknr/datastore/src/bknr-xml.asd (modified) (1 diff)
- branches/trunk-reorg/bknr/datastore/src/data/object.lisp (modified) (1 diff)
- branches/trunk-reorg/bknr/datastore/src/data/package.lisp (modified) (1 diff)
- branches/trunk-reorg/bknr/datastore/src/utils/actor.lisp (modified) (1 diff)
- branches/trunk-reorg/bknr/datastore/src/utils/class.lisp (modified) (1 diff)
- branches/trunk-reorg/bknr/datastore/src/utils/package.lisp (modified) (2 diffs)
- branches/trunk-reorg/bknr/datastore/src/utils/utils.lisp (modified) (2 diffs)
- branches/trunk-reorg/bknr/datastore/src/xml-impex/package.lisp (modified) (2 diffs)
- branches/trunk-reorg/bknr/datastore/src/xml-impex/xml-export.lisp (modified) (1 diff)
- branches/trunk-reorg/bknr/datastore/src/xml/xml.lisp (modified) (1 diff)
- branches/trunk-reorg/bknr/modules/album/album.lisp (modified) (1 diff)
- branches/trunk-reorg/bknr/modules/bknr-modules.asd (modified) (7 diffs)
- branches/trunk-reorg/bknr/modules/bug/bug-handlers.lisp (modified) (17 diffs)
- branches/trunk-reorg/bknr/modules/class-browser/class-browser.lisp (modified) (2 diffs)
- branches/trunk-reorg/bknr/modules/comics/comics.lisp (modified) (1 diff)
- branches/trunk-reorg/bknr/modules/feed/edit-feed-handler.lisp (modified) (7 diffs)
- branches/trunk-reorg/bknr/modules/feed/feed-handlers.lisp (modified) (7 diffs)
- branches/trunk-reorg/bknr/modules/feed/feed.lisp (modified) (1 diff)
- branches/trunk-reorg/bknr/modules/imagemap/imagemap-handlers.lisp (modified) (4 diffs)
- branches/trunk-reorg/bknr/modules/mail/mail.lisp (modified) (1 diff)
- branches/trunk-reorg/bknr/modules/mail/mailinglist-handlers.lisp (modified) (13 diffs)
- branches/trunk-reorg/bknr/modules/mail/package.lisp (modified) (2 diffs)
- branches/trunk-reorg/bknr/modules/mail/register-handler.lisp (modified) (7 diffs)
- branches/trunk-reorg/bknr/modules/mail/smtp-server.lisp (modified) (1 diff)
- branches/trunk-reorg/bknr/modules/packages.lisp (modified) (2 diffs)
- branches/trunk-reorg/bknr/modules/quizz/edit-quizz-handlers.lisp (modified) (9 diffs)
- branches/trunk-reorg/bknr/modules/quizz/quizz-handlers.lisp (modified) (7 diffs)
- branches/trunk-reorg/bknr/modules/stats/package.lisp (modified) (2 diffs)
- branches/trunk-reorg/bknr/modules/stats/stats-handler.lisp (modified) (18 diffs)
- branches/trunk-reorg/bknr/modules/tamagotchi/tamagotchi-handlers.lisp (modified) (3 diffs)
- branches/trunk-reorg/bknr/modules/text/article-handlers.lisp (modified) (4 diffs)
- branches/trunk-reorg/bknr/modules/text/article-tags.lisp (modified) (2 diffs)
- branches/trunk-reorg/bknr/modules/text/article.lisp (modified) (1 diff)
- branches/trunk-reorg/bknr/modules/text/billboard-handlers.lisp (modified) (4 diffs)
- branches/trunk-reorg/bknr/modules/text/blog-handlers.lisp (modified) (6 diffs)
- branches/trunk-reorg/bknr/modules/text/htmlize-handler.lisp (modified) (2 diffs)
- branches/trunk-reorg/bknr/modules/text/package.lisp (modified) (2 diffs)
- branches/trunk-reorg/bknr/modules/text/paste-handlers.lisp (modified) (5 diffs)
- branches/trunk-reorg/bknr/modules/text/wiki-handlers.lisp (modified) (2 diffs)
- branches/trunk-reorg/bknr/modules/track/import-handler.lisp (modified) (4 diffs)
- branches/trunk-reorg/bknr/modules/track/track-handlers.lisp (modified) (8 diffs)
- branches/trunk-reorg/bknr/modules/track/track-tags.lisp (modified) (2 diffs)
- branches/trunk-reorg/bknr/modules/url/cached-url-handlers.lisp (modified) (3 diffs)
- branches/trunk-reorg/bknr/modules/url/edit-url-handlers.lisp (modified) (4 diffs)
- branches/trunk-reorg/bknr/modules/url/url-handlers.lisp (modified) (7 diffs)
- branches/trunk-reorg/bknr/tools/make-core.lisp (modified) (1 diff)
- branches/trunk-reorg/bknr/web/src/bknr-web.asd (modified) (3 diffs)
- branches/trunk-reorg/bknr/web/src/images/edit-image-handler.lisp (modified) (8 diffs)
- branches/trunk-reorg/bknr/web/src/images/image-handlers.lisp (modified) (13 diffs)
- branches/trunk-reorg/bknr/web/src/images/image-tags.lisp (modified) (3 diffs)
- branches/trunk-reorg/bknr/web/src/images/imageproc-handler.lisp (modified) (1 diff)
- branches/trunk-reorg/bknr/web/src/images/import-images-handler.lisp (modified) (3 diffs)
- branches/trunk-reorg/bknr/web/src/images/session-image.lisp (modified) (2 diffs)
- branches/trunk-reorg/bknr/web/src/packages.lisp (modified) (6 diffs)
- branches/trunk-reorg/bknr/web/src/rss/parse-atom.lisp (modified) (1 diff)
- branches/trunk-reorg/bknr/web/src/rss/parse-rss091.lisp (modified) (1 diff)
- branches/trunk-reorg/bknr/web/src/rss/parse-rss10.lisp (modified) (1 diff)
- branches/trunk-reorg/bknr/web/src/rss/parse-rss20.lisp (modified) (1 diff)
- branches/trunk-reorg/bknr/web/src/web/authorizer.lisp (modified) (3 diffs)
- branches/trunk-reorg/bknr/web/src/web/event-log.lisp (modified) (4 diffs)
- branches/trunk-reorg/bknr/web/src/web/handlers.lisp (modified) (21 diffs)
- branches/trunk-reorg/bknr/web/src/web/rss-handlers.lisp (modified) (1 diff)
- branches/trunk-reorg/bknr/web/src/web/sessions.lisp (modified) (2 diffs)
- branches/trunk-reorg/bknr/web/src/web/tags.lisp (modified) (5 diffs)
- branches/trunk-reorg/bknr/web/src/web/templates.lisp (modified) (10 diffs)
- branches/trunk-reorg/bknr/web/src/web/user-handlers.lisp (modified) (6 diffs)
- branches/trunk-reorg/bknr/web/src/web/web-macros.lisp (modified) (3 diffs)
- branches/trunk-reorg/bknr/web/src/web/web-utils.lisp (modified) (7 diffs)
- branches/trunk-reorg/projects/bos/m2/m2.lisp (modified) (1 diff)
- branches/trunk-reorg/projects/bos/m2/mail-generator.lisp (modified) (5 diffs)
- branches/trunk-reorg/projects/bos/web/package.lisp (modified) (1 diff)
- branches/trunk-reorg/projects/bos/web/web.lisp (modified) (1 diff)
- branches/trunk-reorg/projects/bos/worldpay-test/allocation-area-handlers.lisp (modified) (8 diffs)
- branches/trunk-reorg/projects/bos/worldpay-test/boi-handlers.lisp (modified) (7 diffs)
- branches/trunk-reorg/projects/bos/worldpay-test/contract-handlers.lisp (modified) (1 diff)
- branches/trunk-reorg/projects/bos/worldpay-test/contract-image-handler.lisp (modified) (3 diffs)
- branches/trunk-reorg/projects/bos/worldpay-test/languages-handler.lisp (modified) (2 diffs)
- branches/trunk-reorg/projects/bos/worldpay-test/map-browser-handler.lisp (modified) (5 diffs)
- branches/trunk-reorg/projects/bos/worldpay-test/map-handlers.lisp (modified) (7 diffs)
- branches/trunk-reorg/projects/bos/worldpay-test/news-handlers.lisp (modified) (4 diffs)
- branches/trunk-reorg/projects/bos/worldpay-test/packages.lisp (modified) (2 diffs)
- branches/trunk-reorg/projects/bos/worldpay-test/poi-handlers.lisp (modified) (18 diffs)
- branches/trunk-reorg/projects/bos/worldpay-test/reports-xml-handler.lisp (modified) (1 diff)
- branches/trunk-reorg/projects/bos/worldpay-test/sponsor-handlers.lisp (modified) (16 diffs)
- branches/trunk-reorg/projects/bos/worldpay-test/web-utils.lisp (modified) (4 diffs)
- branches/trunk-reorg/projects/bos/worldpay-test/worldpay-test.lisp (modified) (7 diffs)
- branches/trunk-reorg/projects/eboy/src/breadcrumb.lisp (modified) (3 diffs)
- branches/trunk-reorg/projects/eboy/src/dynasite-tags.lisp (modified) (3 diffs)
- branches/trunk-reorg/projects/eboy/src/eboy-templates.lisp (modified) (2 diffs)
- branches/trunk-reorg/projects/eboy/src/item-handlers.lisp (modified) (2 diffs)
- branches/trunk-reorg/projects/eboy/src/jerks.lisp (modified) (6 diffs)
- branches/trunk-reorg/projects/eboy/src/layout.lisp (modified) (1 diff)
- branches/trunk-reorg/projects/eboy/src/navi.lisp (modified) (2 diffs)
- branches/trunk-reorg/projects/eboy/src/packages.lisp (modified) (2 diffs)
- branches/trunk-reorg/projects/eboy/src/peecol.lisp (modified) (7 diffs)
- branches/trunk-reorg/projects/gpn/add-user-handler.lisp (modified) (3 diffs)
- branches/trunk-reorg/projects/gpn/gpn-tags.lisp (modified) (7 diffs)
- branches/trunk-reorg/projects/gpn/import-handler.lisp (modified) (4 diffs)
- branches/trunk-reorg/projects/gpn/packages.lisp (modified) (2 diffs)
- branches/trunk-reorg/projects/gpn/zeitplan-handlers.lisp (modified) (6 diffs)
- branches/trunk-reorg/projects/hello-web/src/handlers.lisp (modified) (1 diff)
- branches/trunk-reorg/projects/hello-web/src/packages.lisp (modified) (2 diffs)
- branches/trunk-reorg/projects/lisp-ecoop/src/handlers.lisp (modified) (6 diffs)
- branches/trunk-reorg/projects/lisp-ecoop/src/participant.lisp (modified) (1 diff)
- branches/trunk-reorg/projects/lisp-ecoop/src/schedule.lisp (modified) (5 diffs)
- branches/trunk-reorg/projects/lisp-ecoop/src/tags.lisp (modified) (15 diffs)
- branches/trunk-reorg/projects/mah-jongg/src/game.lisp (modified) (2 diffs)
- branches/trunk-reorg/projects/mah-jongg/src/package.lisp (modified) (1 diff)
- branches/trunk-reorg/projects/quickhoney/src/config.lisp (modified) (1 diff)
- branches/trunk-reorg/projects/quickhoney/src/handlers.lisp (modified) (15 diffs)
- branches/trunk-reorg/projects/quickhoney/src/init.lisp (modified) (1 diff)
- branches/trunk-reorg/projects/quickhoney/src/layout.lisp (modified) (5 diffs)
- branches/trunk-reorg/projects/quickhoney/src/packages.lisp (modified) (4 diffs)
- branches/trunk-reorg/projects/quickhoney/src/quickhoney.asd (modified) (1 diff)
- branches/trunk-reorg/projects/quickhoney/src/webserver.lisp (modified) (3 diffs)
- branches/trunk-reorg/projects/raw-data/mcp/handlers.lisp (modified) (1 diff)
- branches/trunk-reorg/projects/raw-data/mcp/packages.lisp (modified) (1 diff)
- branches/trunk-reorg/projects/saugnapf/src/package.lisp (modified) (1 diff)
- branches/trunk-reorg/projects/saugnapf/src/saugnapf.lisp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/trunk-reorg/bknr/datastore/patches/patch-around-mop-cmucl19.lisp
r1372 r2417 1 1 ;;; This patch fixes the problem with get-accessor-method-function 2 ;;; throwing an internal error in cmucl 19 a.2 ;;; throwing an internal error in cmucl 19 3 3 ;;; 4 4 ;;; Not yet in cmucl branches/trunk-reorg/bknr/datastore/src/bknr-utils.asd
r2212 r2417 19 19 :depends-on (:cl-interpol :cl-ppcre 20 20 :md5 21 :hunchentoot ; (for hunchentoot-mp package) 21 22 :iconv) 22 23 branches/trunk-reorg/bknr/datastore/src/bknr-xml.asd
r2226 r2417 18 18 :depends-on (:cl-interpol :cxml) 19 19 :components ((:module "xml" :components ((:file "package") 20 (:file "xml")))))20 (:file "xml" :depends-on ("package")))))) 21 21 branches/trunk-reorg/bknr/datastore/src/data/object.lisp
r2289 r2417 36 36 37 37 (deftransaction update-instances-for-changed-class (class) 38 (unless *suppress-schema-warnings* 39 (warn "updating ~A instances of ~A for class changes" (length (class-instances class)) class)) 40 (mapc #'reinitialize-instance (class-instances class))) 38 (let ((instance-count (length (class-instances class)))) 39 (when (plusp instance-count) 40 (unless *suppress-schema-warnings* 41 (warn "updating ~A instances of ~A for class changes" instance-count class)) 42 (mapc #'reinitialize-instance (class-instances class))))) 41 43 42 44 (defmethod instance :after ((class persistent-class) &rest args) branches/trunk-reorg/bknr/datastore/src/data/package.lisp
r2267 r2417 5 5 :bknr.indices :bknr.statistics 6 6 :closer-mop ) 7 #+cmu 8 (:shadowing-import-from :common-lisp #:subtypep #:typep) 7 9 (:shadowing-import-from :cl-interpol quote-meta-chars) 8 10 (:export #:*store-debug* branches/trunk-reorg/bknr/datastore/src/utils/actor.lisp
r1069 r2417 19 19 (actor-stop actor) 20 20 (setf (slot-value actor 'process) 21 (process-run-function 22 (bknr-actor-name actor) 23 #'(lambda () 24 (funcall #'run-function actor))))) 21 (mp:make-process (lambda () 22 (funcall #'run-function actor)) 23 :name (bknr-actor-name actor)))) 25 24 26 25 (defmethod actor-running-p ((actor bknr-actor)) 27 26 (and (slot-boundp actor 'process) 28 ( process-active-p (bknr-actor-process actor))))27 (mp:process-active-p (bknr-actor-process actor)))) 29 28 30 29 (defmethod actor-stop ((actor bknr-actor)) 31 30 (when (slot-boundp actor 'process) 32 ( process-kill(bknr-actor-process actor))31 (mp:destroy-process (bknr-actor-process actor)) 33 32 (slot-makunbound actor 'process))) branches/trunk-reorg/bknr/datastore/src/utils/class.lisp
r1375 r2417 6 6 (destructuring-bind (name access &rest rest) slot 7 7 (let* ((initarg (make-keyword-from-string (symbol-name name))) 8 (package (symbol-package class))9 8 (accessor (intern (concatenate 'string (symbol-name class) "-" 10 (symbol-name name)) package)))9 (symbol-name name)) *package*))) 11 10 (push initarg rest) 12 11 (push :initarg rest) branches/trunk-reorg/bknr/datastore/src/utils/package.lisp
r2210 r2417 55 55 #:find-all 56 56 #:genlist 57 #+no-alexandria 57 58 #:rotate 58 59 #:nrotate … … 67 68 68 69 ;; randomize 70 #+no-alexandria 69 71 #:random-elt 70 72 #:random-elts branches/trunk-reorg/bknr/datastore/src/utils/utils.lisp
r2210 r2417 284 284 (apply #'values sum hash-tables))) 285 285 286 #+no-alexandria 286 287 (defun rotate (list) 287 288 (when list … … 351 352 l) 352 353 354 #+no-alexandria 353 355 (defun random-elt (choices) 354 356 (when choices branches/trunk-reorg/bknr/datastore/src/xml-impex/package.lisp
r2226 r2417 3 3 (defpackage :bknr.impex 4 4 (:use :cl 5 #+clisp6 :ext7 :cl-user8 5 :cxml 9 6 :closer-mop … … 11 8 :bknr.xml 12 9 :bknr.indices) 10 #+cmu 11 (:shadowing-import-from :common-lisp #:subtypep #:typep) 13 12 14 13 (:export #:xml-class branches/trunk-reorg/bknr/datastore/src/xml-impex/xml-export.lisp
r2226 r2417 13 13 `(let ((*objects-written* (make-hash-table :test #'equal)) 14 14 (cxml::*current-element* nil) 15 (cxml::*sink* (cxml:make-character-stream-sink ,output16 :indentation ,indentation :canonical ,canonical)))15 (cxml::*sink* #+(or) (cxml:make-character-stream-sink ,output 16 :indentation ,indentation :canonical ,canonical))) 17 17 ,@body)) 18 18 branches/trunk-reorg/bknr/datastore/src/xml/xml.lisp
r2226 r2417 19 19 20 20 (defun node-attribute (xml attribute-name) 21 (cadr (assoc attribute-name (node-attrs xml) :test #' string-equal)))21 (cadr (assoc attribute-name (node-attrs xml) :test #'equal))) 22 22 23 23 (defun node-child-string-body (xml node-name) branches/trunk-reorg/bknr/modules/album/album.lisp
r1565 r2417 33 33 ()) 34 34 35 (defmethod handle ((handler album-handler) req)35 (defmethod handle ((handler album-handler)) 36 36 (multiple-value-bind (username album) 37 (parse-handler-url handler req)37 (parse-handler-url handler) 38 38 (let ((user (when username (find-user username)))) 39 39 (cond ((and user album) 40 (with-bknr-page ( req:title #?"${username} : ${album}")40 (with-bknr-page (:title #?"${username} : ${album}") 41 41 (album :username username :album album))) 42 42 (user 43 (with-bknr-page ( req:title #?"${username}'s albums")43 (with-bknr-page (:title #?"${username}'s albums") 44 44 (user-albums :username username))) 45 (t (with-bknr-page ( req:title "No such album")45 (t (with-bknr-page (:title "No such album") 46 46 (:h2 "No such album"))))))) 47 47 branches/trunk-reorg/bknr/modules/bknr-modules.asd
r2227 r2417 18 18 :cl-ppcre 19 19 :cl-gd 20 :aserve21 :net.post-office22 20 :md5 21 :closer-mop 22 :cl-smtp 23 23 :cxml 24 24 :unit-test … … 26 26 :puri 27 27 :stem 28 :bknr 29 : acl-compat)28 :bknr-web 29 :parenscript) 30 30 31 31 :components ((:file "packages") … … 46 46 (:file "blog" 47 47 :depends-on ("article" "vector-search")) 48 #+(or) 48 49 (:file "billboard" 49 50 :depends-on ("article")) … … 54 55 (:file "blog-handlers" 55 56 :depends-on ("blog" "article-tags" "article-handlers")) 57 #+(or) 56 58 (:file "billboard-handlers" 57 59 :depends-on ("billboard" "article-tags")) … … 65 67 :depends-on ("packages")) 66 68 69 #+(or) 67 70 (:module "feed" :components ((:file "feed") 68 71 (:file "feed-tags" … … 131 134 :depends-on ("general" "web" "packages")) 132 135 136 #+(or) 133 137 (:module "track" :components ((:file "track") 134 138 (:file "media" … … 145 149 :depends-on ("packages")) 146 150 151 #+(or) 147 152 (:module "comics" :components ((:file "comics")))) 148 153 :depends-on ("packages")) branches/trunk-reorg/bknr/modules/bug/bug-handlers.lisp
r1565 r2417 6 6 ()) 7 7 8 (defmethod object-handler-get-object ((hander bug-tracker-handler) req)9 (let ((id-or-name (parse-url req)))8 (defmethod object-handler-get-object ((hander bug-tracker-handler)) 9 (let ((id-or-name (parse-url))) 10 10 (when id-or-name 11 11 (find-store-object id-or-name :class 'bug-tracker)))) 12 12 13 (defmethod handle-object-form ((handler bug-tracker-handler) action (tracker (eql nil)) req)13 (defmethod handle-object-form ((handler bug-tracker-handler) action (tracker (eql nil))) 14 14 (let ((bug-trackers (all-bug-trackers))) 15 (with-bknr-page ( req:title "Bug trackers")15 (with-bknr-page (:title "Bug trackers") 16 16 (:h2 "all bug-trackers") 17 17 (:ul (dolist (bug-tracker bug-trackers) … … 20 20 (:princ-safe (mailinglist-name bug-tracker)))))))))) 21 21 22 (defmethod handle-object-form ((handler bug-tracker-handler) action tracker req)23 (with-bknr-page ( req:title #?"bug-tracker for $((mailinglist-name tracker))")24 (when (admin-p (bknr-request-user req))22 (defmethod handle-object-form ((handler bug-tracker-handler) action tracker) 23 (with-bknr-page (:title #?"bug-tracker for $((mailinglist-name tracker))") 24 (when (admin-p (bknr-request-user)) 25 25 (html ((:a :href (format nil "/edit-bug-tracker/~a" (store-object-id tracker))) 26 26 "edit bug-tracker"))) 27 27 (bug-tracker-page :bug-tracker-id (store-object-id tracker)))) 28 28 29 (defmethod file-bug-report ((handler bug-tracker-handler) tracker req)30 (let ((user (bknr-request-user req)))29 (defmethod file-bug-report ((handler bug-tracker-handler) tracker) 30 (let ((user (bknr-request-user))) 31 31 ;; XXX check user rights 32 (with-query-params ( reqname status priority description)32 (with-query-params (name status priority description) 33 33 (let ((bug-report (make-object 'bug-report 34 34 :tracker tracker … … 42 42 43 43 (defmethod handle-object-form ((handler bug-tracker-handler) (action (eql :create-bug-report)) 44 tracker req)45 (let ((bug-report (file-bug-report handler tracker req)))46 (redirect (format nil "/bug-report/~a" (store-object-id bug-report)) req)))44 tracker) 45 (let ((bug-report (file-bug-report handler tracker))) 46 (redirect (format nil "/bug-report/~a" (store-object-id bug-report))))) 47 47 48 48 (defclass bug-report-handler (edit-object-handler) 49 49 ()) 50 50 51 (defmethod object-handler-get-object ((handler bug-report-handler) req)52 (let ((id-or-name (parse-url req)))51 (defmethod object-handler-get-object ((handler bug-report-handler)) 52 (let ((id-or-name (parse-url))) 53 53 (when id-or-name 54 54 (find-store-object id-or-name :class 'bug-report)))) 55 55 56 (defmethod handle-object-form ((handler bug-report-handler) action (report (eql nil)) req)57 (redirect "/bug-tracker" req))58 59 (defmethod handle-object-form ((handler bug-report-handler) action report req)60 (with-bknr-page ( req:title #?"bug-report")61 (when (or (equal (bknr-request-user req)56 (defmethod handle-object-form ((handler bug-report-handler) action (report (eql nil))) 57 (redirect "/bug-tracker")) 58 59 (defmethod handle-object-form ((handler bug-report-handler) action report) 60 (with-bknr-page (:title #?"bug-report") 61 (when (or (equal (bknr-request-user) 62 62 (bug-report-handler report)) 63 (admin-p (bknr-request-user req)))63 (admin-p (bknr-request-user))) 64 64 (html ((:a :href (format nil "/edit-bug-report/~a" (store-object-id report))) 65 65 "edit bug-report"))) … … 67 67 68 68 (defmethod handle-object-form ((handler bug-report-handler) (action (eql :annotate)) 69 report req)69 report) 70 70 (if report 71 (let ((user (bknr-request-user req)))72 (with-query-params ( reqtitle text)71 (let ((user (bknr-request-user))) 72 (with-query-params (title text) 73 73 (let ((article (make-object 'article 74 74 :author user … … 78 78 (bug-report-add-annotation report article) 79 79 (delete-object article)) 80 (handle-object-form handler nil report req))))81 (handle-object-form handler nil report req)))80 (handle-object-form handler nil report)))) 81 (handle-object-form handler nil report))) 82 82 83 83 (defclass edit-bug-tracker-handler (bug-tracker-handler) … … 85 85 86 86 (defmethod handle-object-form ((handler edit-bug-tracker-handler) action 87 (bug-tracker (eql nil)) req)87 (bug-tracker (eql nil))) 88 88 (let ((bug-trackers (all-bug-trackers))) 89 (with-bknr-page ( req:title "Bug trackers")89 (with-bknr-page (:title "Bug trackers") 90 90 (:h2 "all bug-trackers") 91 91 (:ul (dolist (bug-tracker bug-trackers) … … 97 97 98 98 (defmethod handle-object-form ((handler edit-bug-tracker-handler) 99 (action (eql :create)) bug-tracker req)100 (with-query-params ( reqname email description)99 (action (eql :create)) bug-tracker) 100 (with-query-params (name email description) 101 101 (if (and name email) 102 102 (let ((bug-tracker (make-object 'bug-tracker … … 104 104 :email email 105 105 :description description))) 106 (redirect (format nil "/edit-bug-tracker/~a" (store-object-id bug-tracker)) req))107 (handle-object-form handler nil nil req))))106 (redirect (format nil "/edit-bug-tracker/~a" (store-object-id bug-tracker)))) 107 (handle-object-form handler nil nil)))) 108 108 109 109 (defmethod handle-object-form ((handler edit-bug-tracker-handler) (action (eql :create-bug-report)) 110 tracker req)111 (file-bug-report handler tracker req)112 (redirect (format nil "/edit-bug-tracker/~a" (store-object-id tracker)) req))110 tracker) 111 (file-bug-report handler tracker) 112 (redirect (format nil "/edit-bug-tracker/~a" (store-object-id tracker)))) 113 113 114 114 (defmethod handle-object-form ((handler edit-bug-tracker-handler) 115 115 (action (eql :save)) 116 tracker req)117 (if (admin-p (bknr-request-user req))118 (with-query-params ( reqname email description)116 tracker) 117 (if (admin-p (bknr-request-user)) 118 (with-query-params (name email description) 119 119 (change-slot-values tracker 'name name 'email email 'description description) 120 120 (call-next-method)) 121 (with-bknr-page ( req:title #?"Edit bug tracker")121 (with-bknr-page (:title #?"Edit bug tracker") 122 122 (:p "You are not authorized to edit this bug tracker") 123 123 ((:a :href "/bug-tracker") "return to bug-tracker page")))) 124 124 125 125 (defmethod handle-object-form ((handler edit-bug-tracker-handler) action 126 bug-tracker req)127 (with-bknr-page ( req:title #?"Edit bug tracker: $((mailinglist-name bug-tracker))")126 bug-tracker) 127 (with-bknr-page (:title #?"Edit bug tracker: $((mailinglist-name bug-tracker))") 128 128 (bug-tracker-form :bug-tracker-id (store-object-id bug-tracker)))) 129 129 … … 132 132 133 133 (defmethod handle-object-form ((handler edit-bug-report-handler) 134 action (bug-report (eql nil)) req)135 (redirect "/edit-bug-tracker" req))136 137 (defmethod handle-object-form ((handler edit-bug-report-handler) 138 action bug-report req)139 (with-bknr-page ( req:title #?"Edit bug report")134 action (bug-report (eql nil))) 135 (redirect "/edit-bug-tracker")) 136 137 (defmethod handle-object-form ((handler edit-bug-report-handler) 138 action bug-report) 139 (with-bknr-page (:title #?"Edit bug report") 140 140 (if bug-report 141 141 (bug-form :bug-id (store-object-id bug-report)) 142 (redirect "/edit-bug-tracker" req))))142 (redirect "/edit-bug-tracker")))) 143 143 144 144 (defmethod handle-object-form ((handler edit-bug-report-handler) 145 145 (action (eql :save)) 146 report req)147 (if (or (admin-p (bknr-request-user req))148 (equal (bknr-request-user req)149 (bug-report-handler report))) 150 (with-query-params ( reqname status priority description)146 report) 147 (if (or (admin-p (bknr-request-user)) 148 (equal (bknr-request-user) 149 (bug-report-handler report))) 150 (with-query-params (name status priority description) 151 151 (let ((status-kw (make-keyword-from-string status)) 152 152 (priority-kw (make-keyword-from-string priority))) … … 164 164 'last-modified (get-universal-time))) 165 165 (call-next-method))) 166 (with-bknr-page ( req:title #?"Edit bug report")166 (with-bknr-page (:title #?"Edit bug report") 167 167 (:p "You are not the handler of this bug report") 168 168 ((:a :href (format nil "/bug-report/~a" (store-object-id report))) … … 171 171 (defmethod handle-object-form ((handler edit-bug-report-handler) 172 172 (action (eql :close)) 173 report req)174 (if (or (admin-p (bknr-request-user req))175 (equal (bknr-request-user req)173 report) 174 (if (or (admin-p (bknr-request-user)) 175 (equal (bknr-request-user) 176 176 (bug-report-handler report))) 177 177 (progn … … 180 180 'last-modified (get-universal-time)) 181 181 (call-next-method)) 182 (with-bknr-page ( req:title #?"Edit bug report")182 (with-bknr-page (:title #?"Edit bug report") 183 183 (:p "You are not the handler of this bug report") 184 184 ((:a :href (format nil "/bug-report/~a" (store-object-id report))) … … 187 187 (defmethod handle-object-form ((handler edit-bug-report-handler) 188 188 (action (eql :reopen)) 189 report req)190 (if (or (admin-p (bknr-request-user req))191 (equal (bknr-request-user req)189 report) 190 (if (or (admin-p (bknr-request-user)) 191 (equal (bknr-request-user) 192 192 (bug-report-handler report))) 193 193 (progn … … 196 196 'last-modified (get-universal-time)) 197 197 (call-next-method)) 198 (with-bknr-page ( req:title #?"Edit bug report")198 (with-bknr-page (:title #?"Edit bug report") 199 199 (:p "You are not the handler of this bug report") 200 200 ((:a :href (format nil "/bug-report/~a" (store-object-id report))) … … 203 203 (defmethod handle-object-form ((handler edit-bug-report-handler) 204 204 (action (eql :delete)) 205 report req)206 (if (or (admin-p (bknr-request-user req))207 (equal (bknr-request-user req)205 report) 206 (if (or (admin-p (bknr-request-user)) 207 (equal (bknr-request-user) 208 208 (bug-report-handler report))) 209 209 (progn … … 211 211 (bug-tracker-remove-bug-report tracker report) 212 212 (delete-object report) 213 (redirect (format nil "/edit-bug-tracker/~a" (store-object-id tracker)) req))214 (with-bknr-page ( req:title #?"Edit bug report")213 (redirect (format nil "/edit-bug-tracker/~a" (store-object-id tracker)))) 214 (with-bknr-page (:title #?"Edit bug report") 215 215 (:p "You are not the handler of this bug report") 216 216 ((:a :href (format nil "/bug-report/~a" (store-object-id report))) … … 219 219 (defmethod handle-object-form ((handler edit-bug-report-handler) 220 220 (action (eql :handle)) 221 report req)221 report) 222 222 (if (or (null (bug-report-handler report)) 223 (admin-p (bknr-request-user req)))224 (progn 225 (change-slot-values report 'handler (bknr-request-user req))226 (call-next-method)) 227 (with-bknr-page ( req:title #?"Edit bug report")223 (admin-p (bknr-request-user))) 224 (progn 225 (change-slot-values report 'handler (bknr-request-user)) 226 (call-next-method)) 227 (with-bknr-page (:title #?"Edit bug report") 228 228 (:p "You can not become the handler of this bug report") 229 229 ((:a :href (format nil "/bug-report/~a" (store-object-id report))) branches/trunk-reorg/bknr/modules/class-browser/class-browser.lisp
r2045 r2417 5 5 (:default-initargs :default-package-name nil)) 6 6 7 (defmethod object-handler-get-object ((handler class-browser-handler) req)7 (defmethod object-handler-get-object ((handler class-browser-handler)) 8 8 (destructuring-bind (class-name &optional (package-name (slot-value handler 'default-package-name))) 9 (mapcar #'string-upcase (reverse (split "::" (parse-url req))))9 (mapcar #'string-upcase (reverse (split "::" (parse-url)))) 10 10 (find-class (find-symbol class-name (find-package package-name)) nil))) 11 11 12 (defmethod handle-object ((handler class-browser-handler) (class (eql nil)) req)13 (user-error "Invalid class name ~A" (parse-url req)))12 (defmethod handle-object ((handler class-browser-handler) (class (eql nil))) 13 (user-error "Invalid class name ~A" (parse-url))) 14 14 15 (defmethod handle-object ((handler class-browser-handler) class req)16 (with-http-response ( req *e
