minor fixes concerning shape:meta
This commit is contained in:
parent
876e11b0c9
commit
6f846ea940
2 changed files with 5 additions and 4 deletions
|
@ -44,7 +44,7 @@
|
||||||
(print-slots rec stream 'head 'data))
|
(print-slots rec stream 'head 'data))
|
||||||
|
|
||||||
(defmethod head-fields ((rec record))
|
(defmethod head-fields ((rec record))
|
||||||
(head-fields (get-meta (class-of rec))))
|
(head-fields (meta rec)))
|
||||||
|
|
||||||
(defun head-value (rec key)
|
(defun head-value (rec key)
|
||||||
(elt (head rec) (position key (head-fields rec))))
|
(elt (head rec) (position key (head-fields rec))))
|
||||||
|
|
|
@ -63,9 +63,10 @@
|
||||||
(make-instance 'container :short-name :trk :storage st))
|
(make-instance 'container :short-name :trk :storage st))
|
||||||
|
|
||||||
(defmethod initialize-instance :after ((cont container) &key &allow-other-keys)
|
(defmethod initialize-instance :after ((cont container) &key &allow-other-keys)
|
||||||
(setf (gethash (short-name cont) *containers*) cont)
|
(setf (gethash (short-name cont) *containers*) cont))
|
||||||
(setf (item-head-fields cont)
|
|
||||||
(shape:head-fields (shape:get-meta (item-class cont)))))
|
(defun item-head-fields (cont)
|
||||||
|
(shape:head-fields (shape:get-meta (item-class cont))))
|
||||||
|
|
||||||
(defun make-item (cont &rest head)
|
(defun make-item (cont &rest head)
|
||||||
(make-instance (item-class cont) :head head :container cont))
|
(make-instance (item-class cont) :head head :container cont))
|
||||||
|
|
Loading…
Add table
Reference in a new issue