From: Drew Crampsie Date: Sat, 29 Oct 2005 11:33:19 +0000 (-0700) Subject: trying to fix make-view X-Git-Url: https://git.hcoop.net/clinton/lisp-on-lines.git/commitdiff_plain/e8f6e0863079dba4ba5b6ec8537a8888dcd357f6 trying to fix make-view darcs-hash:20051029113319-5417e-5416fdd976238873e9c6a7350908c84819ada3a7.gz --- 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))) diff --git a/src/mewa.lisp b/src/mewa.lisp index 37f84d9..063775a 100644 --- a/src/mewa.lisp +++ b/src/mewa.lisp @@ -332,6 +332,8 @@ attributes is an alist keyed on the attribute name." (symbol-name type) type)) (plist-union initargs (cddr a))))) + + (warn "~A ~A " initargs (cddr a)) (setf (slot-value i 'instance) object)