HCoop
/
clinton
/
lisp-on-lines.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
moved slot initialisation from before render-on to make-presentation time.
[clinton/lisp-on-lines.git]
/
src
/
mewa
/
mewa.lisp
diff --git
a/src/mewa/mewa.lisp
b/src/mewa/mewa.lisp
index
919adb3
..
ce7ffb3
100644
(file)
--- a/
src/mewa/mewa.lisp
+++ b/
src/mewa/mewa.lisp
@@
-215,12
+215,6
@@
attributes is an alist keyed on the attribute nreeame."
(setf (slots self) (find-slot-presentations self)))
(setf (slots self) (find-slot-presentations self)))
-(defmethod render-on :around ((res response) (self mewa))
- (unless (slot-value self 'initializedp)
- (initialize-slots self))
- (setf (slot-value self 'initializedp) t)
- (call-next-method))
-
(defmethod make-presentation ((object t) &key (type :viewer) (initargs nil))
(let* ((p (make-instance 'mewa-object-presentation))
(defmethod make-presentation ((object t) &key (type :viewer) (initargs nil))
(let* ((p (make-instance 'mewa-object-presentation))
@@
-247,6
+241,8
@@
attributes is an alist keyed on the attribute nreeame."
type))
(plist-union initargs (cddr a)))))
(setf (slot-value i 'instance) object)
type))
(plist-union initargs (cddr a)))))
(setf (slot-value i 'instance) object)
+ (initialize-slots i)
+ (setf (slot-value i 'initializedp) t)
i))
i))