From d6af219e32386c64ef95b8ff0dd8900ea92371fc Mon Sep 17 00:00:00 2001 From: "Kevin M. Rosenberg" Date: Mon, 26 May 2003 21:43:05 +0000 Subject: [PATCH] r5036: *** empty log message *** --- mop.lisp | 8 ++++++-- views.lisp | 42 ++++++++++++++++++++---------------------- 2 files changed, 26 insertions(+), 24 deletions(-) diff --git a/mop.lisp b/mop.lisp index 21c77bc..695b4e9 100644 --- a/mop.lisp +++ b/mop.lisp @@ -11,7 +11,7 @@ ;;;; in Text, HTML, and XML formats. This includes hyperlinking ;;;; capability and sub-objects. ;;;; -;;;; $Id: mop.lisp,v 1.74 2003/05/17 22:24:38 kevin Exp $ +;;;; $Id: mop.lisp,v 1.75 2003/05/26 21:43:05 kevin Exp $ ;;;; ;;;; This file is Copyright (c) 2000-2003 by Kevin M. Rosenberg ;;;; ************************************************************************* @@ -255,8 +255,12 @@ (setf (slot-value esd 'length) length) (setf (slot-value esd 'type) (value-type-to-lisp-type value-type)) (setf (slot-value esd 'value-type) value-type) + (setf (slot-value esd 'user-name) + (aif (slot-value dsd 'user-name) + it + (string-downcase (symbol-name (slot-definition-name dsd))))) (dolist (name '(print-formatter subobject hyperlink hyperlink-parameters - description value-constraint index null-allowed user-name)) + description value-constraint index null-allowed)) (setf (slot-value esd name) (slot-value dsd name))) esd))) diff --git a/views.lisp b/views.lisp index 4b0867e..0aeafe1 100644 --- a/views.lisp +++ b/views.lisp @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Apr 2000 ;;;; -;;;; $Id: views.lisp,v 1.47 2003/05/22 21:03:52 kevin Exp $ +;;;; $Id: views.lisp,v 1.48 2003/05/26 21:43:05 kevin Exp $ ;;;; ;;;; This file is Copyright (c) 2000-2003 by Kevin M. Rosenberg ;;;; ************************************************************************* @@ -177,12 +177,10 @@ (let* ((slot-data (slot-value obj name)) (fmt-data (if formatter (funcall formatter slot-data) - slot-data)) - (data (if cdata - (kmrcl:xml-cdata fmt-data) - fmt-data))) - (write-simple data strm))) - + slot-data))) + (if cdata + (write-xml-cdata fmt-data strm) + (write-simple fmt-data strm)))) (defun ppfc-html (title name type formatter cdata print-func) (vector-push-extend '(write-string "