X-Git-Url: https://git.hcoop.net/clinton/lisp-on-lines.git/blobdiff_plain/14a7e1bc1292858dce5ac75038f660c2e52898a5..d0301620ac9aa7d8170ba628df493c1ff1e1d2fa:/src/lisp-on-lines.lisp diff --git a/src/lisp-on-lines.lisp b/src/lisp-on-lines.lisp index 8652e10..3c02bd9 100644 --- a/src/lisp-on-lines.lisp +++ b/src/lisp-on-lines.lisp @@ -43,7 +43,6 @@ ;;;; The following macros are used to initialise a set of database tables as LoL objects. - (eval-when (:compile-toplevel :load-toplevel :execute) (defun generate-define-view-for-table (table) " @@ -64,18 +63,24 @@ This involves creating a meta-model, a clsql view-class, and the setting up the "expands to init-i-f-t using the listing of tables provided by meta-model" `(define-view-for-table ,@(meta-model::list-tables))) + + +;;;; These are some macros over the old presentation system. +;;;; Considered depreciated, they will eventually be implemented in terms of the new +;;;; display system, and delegated to backwards-compat-0.2.lisp + (eval-when (:compile-toplevel :load-toplevel :execute) (defun %make-view (object type attributes args) - (when attributes - (setf args - (cons `(:attributes ,attributes) args))) - `(mewa::make-presentation - ,object - :type ,type - ,@(when args - `(:initargs - '(,@ (mapcan #'identity args))))))) + (when attributes + (setf args + (cons `(:attributes ,attributes) args))) + `(mewa::make-presentation + ,object + :type ,type + ,@(when args + `(:initargs + '(,@ (mapcan #'identity args))))))) (defmethod make-view (object &rest args &key (type :viewer) &allow-other-keys )