X-Git-Url: https://git.hcoop.net/clinton/lisp-on-lines.git/blobdiff_plain/5dea194ed068c8ff73dd65849d92be4ee6c7097b..8c6914bd27843fc74d07da3965fafaac09c85c4e:/src/static-presentations.lisp diff --git a/src/static-presentations.lisp b/src/static-presentations.lisp index bdc0b5e..5958f3b 100644 --- a/src/static-presentations.lisp +++ b/src/static-presentations.lisp @@ -561,7 +561,7 @@ This method is also used by relation-slot-presentations for the same reason.")) (unless (string= "" value) (let ((i (parse-integer value :junk-allowed t))) (when i - (setf (presentation-slot-value slot instance) (parse-integer value)))))) + (setf (presentation-slot-value slot instance) i))))) (defmethod present-slot ((slot integer-slot-presentation) instance) (if (editablep slot) @@ -579,7 +579,7 @@ This method is also used by relation-slot-presentations for the same reason.")) ;;;; Currency (double precision reals) (defslot-presentation currency-slot-presentation (real-slot-presentation) - () + ((as-money-p :accessor as-money-p :initarg :as-money-p :initform nil)) (:type-name currency)) (defmethod (setf presentation-slot-value) ((value string) (c currency-slot-presentation) instance) @@ -593,7 +593,10 @@ This method is also used by relation-slot-presentations for the same reason.")) (if (editablep currency) (