X-Git-Url: https://git.hcoop.net/clinton/lisp-on-lines.git/blobdiff_plain/63c06c541289a6669a5d03c6076b71ff37e4b49d..e8f6e0863079dba4ba5b6ec8537a8888dcd357f6:/src/lisp-on-lines.lisp?ds=sidebyside diff --git a/src/lisp-on-lines.lisp b/src/lisp-on-lines.lisp index 77dab5c..bcd20e5 100644 --- a/src/lisp-on-lines.lisp +++ b/src/lisp-on-lines.lisp @@ -44,7 +44,10 @@ This involves creating a meta-model, a clsql view-class, and the setting up the (defmethod make-view (object &rest args &key (type :viewer) (attributes nil) &allow-other-keys ) - (apply #'make-presentation (cdr (%make-view object type attributes args)))) + (warn "~A ~A ~A" attributes type object) + (remf args :type ) + (remf args :attributes) + (apply #'make-presentation object (cddr (%make-view object type attributes args)))) (defmacro present-view ((object &optional (type :viewer) (parent 'self)) &body attributes-and-args) @@ -83,14 +86,8 @@ This involves creating a meta-model, a clsql view-class, and the setting up the -(defun %delete-item (item) - (ignore-errors - (clsql:delete-instance-records item))) -(defaction delete-item ((self component) instance) - (if (%delete-item instance) - (answer nil) - (call 'info-message :message "Could not remove item. Try removing associated items first."))) + (defmethod word-search (class-name slots search-terms &key (limit 10) (where (sql-and t)))