the rest of the patches in my repo that need to be applied
[clinton/lisp-on-lines.git] / src / mewa / presentations.lisp
index 39a6647..03db851 100644 (file)
                                (if (listp e) e (list e))))
                  (ucw::criteria self))))
 
-
 (defmethod search-query ((self mewa:mewa-presentation-search))
   (search-expr self (instance self)))
 
 
 (defmethod ok ((self mewa-presentation-search) &optional arg)
   (declare (ignore arg))
-  (setf (ucw::list-presentation self) (valid-instances self))
+  (setf (ucw::instances (ucw::list-presentation self)) (valid-instances self))
   (setf (display-results-p self) t))
 
 (defmethod render-on ((res response) (self mewa-presentation-search))
+  (<:as-html (search-query self))
   (ucw::render-criteria res self)
   (<ucw:input :type "submit" :value "Search" :action (ok self))
   (when (display-results-p self)