;;;; in Text, HTML, and XML formats. This includes hyperlinking
;;;; capability and sub-objects.
;;;;
-;;;; $Id: mop.lisp,v 1.5 2002/12/02 15:57:17 kevin Exp $
+;;;; $Id: mop.lisp,v 1.6 2002/12/05 19:15:02 kevin Exp $
;;;;
;;;; This file is Copyright (c) 2000-2002 by Kevin M. Rosenberg
;;;;
(defun finalize-documentation (cl)
"Calculate class documentation slot"
(awhen (slot-value cl 'title)
- (setf (slot-value cl 'title) (car it)))
+ (setf (slot-value cl 'title)
+ (etypecase (slot-value cl 'title)
+ (cons (car it))
+ ((or string symbol) it))))
(awhen (slot-value cl 'description)
- (setf (slot-value cl 'description) (car it)))
-
+ (setf (slot-value cl 'description)
+ (etypecase (slot-value cl 'description)
+ (cons (car it))
+ ((or string symbol) it))))
+
(let ((*print-circle* nil))
(setf (documentation (class-name cl) 'class)
(format nil "Hyperobject~A~A~A~A"
(defun hyperobject-class-fields (obj)
(class-slots (class-of obj)))
+(defun hyperobject-class-print-slots (obj)
+ (slot-value (class-of obj) 'print-slots))
+
(defun hyperobject-class-fmtstr-html-ref (obj)
(slot-value (class-of obj) 'fmtstr-html-ref))