> (like id, name, description) I'd like to be able to create views by > inheriting from some "base-view" which has those common fields and a > scaffold of the class I am creating the view for.
Assuming the following classes: (defclass A () ((slotA)) (defclass B (A) ((slotB))) (defclass C (A) ((slotC))) and this view scheme: (defview viewA (:type form) (slotA :parse-as predicate)) (defview viewB (:type form :inherit-from 'viewA) (slotB :parse-as predicate)) (defview viewC (:type form :inherit-from 'viewA) (slotC :parse-as predicate)) viewC should allow for parsing of slotA and slotC: is this what you wanted? > Something like > (defview parent-form-view (:type form :inherit-from '(:scaffold base- > data)).... > (defview child-form-view (:type form :inherit-from '(some-parent- > view :scaffold section)).... If you want :inherit-from to be nested arbitrarily, that's not possible. You'll have to unwind it yourself. Not possible: (defview child-form-view (:type form :inherit-from '(some-parent-view :scaffold section)).... Try this instead: (defview child-form-view (:type form :inherit-from '(some-parent-view- scaffolded)).... where (defview parent-form-view-scaffolded (:type form :inherit-from '(:scaffold base-data)) already exists. -- You received this message because you are subscribed to the Google Groups "weblocks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/weblocks?hl=en.
