X-Git-Url: https://git.hcoop.net/clinton/lisp-on-lines.git/blobdiff_plain/79e13683bc810665d3f4fdeb33162166d440d138..15bc66bdec222f512812a9db7e0789bb45b20fb3:/src/slot-presentations.lisp diff --git a/src/slot-presentations.lisp b/src/slot-presentations.lisp index 5270062..c92fa4b 100644 --- a/src/slot-presentations.lisp +++ b/src/slot-presentations.lisp @@ -1,5 +1,8 @@ +(declaim (optimize (speed 0) (space 3) (safety 0))) (in-package :lisp-on-lines) + +;;;; I dont think i'm using these anymore. (defun multiple-value-funcall->list (function &rest args) "The function to be called by m-v-bf" (multiple-value-call #'list (apply function args))) @@ -42,12 +45,12 @@ :rows (rows slot) :cols (columns slot)) (when (presentation-slot-value slot instance) - (maybe-convert-newline-and-escape-html-then-print)) - ))) + (maybe-convert-newline-and-escape-html-then-print))))) (defcomponent mewa-slot-presentation () - ((slot-name :accessor slot-name + ((validate-functions :accessor validate-functions :initform (list (constantly t))) + (slot-name :accessor slot-name :initarg :slot-name :documentation "The name of the slot being accessed") @@ -61,6 +64,8 @@ When T, only the default value for primary keys and the joins are updated.") (creatablep :accessor creatablep :initarg :creatablep :initform t)) (:documentation "The superclass of all Mewa slot presentations")) + + ;;;; this has to be in the eval when i would think (eval-when (:compile-toplevel :load-toplevel :execute) (defun generate-slot-presentation-definition-for-type (type) @@ -378,7 +383,7 @@ Calendar.setup({ :initargs `(:attributes ,(attributes slot))) )) - (<:as-html "--")))) + (<:as-html "--")))) (defslot-presentation many-to-many-slot-presentation (mewa-relation-slot-presentation) ((list-view :accessor list-view :initarg :list-view :initform :one-line)