>> ;; Check for type: >> >> (todo-date :label "Data" :present-as (functioncall :function (f_ (if (typep >> _ 'local-time::timestamp) (timestamp->european-date-string _) "err")))) > > Yes, this is right on target; I am sorry that I didn't see this when > I faced my problem.
Not at all, you were right on track. > there be an additional function option so that you have access to the > entire object since the formatting might depend on another field in > the class, and b) this function be subclassed so that all you would > have to do is give it the formatting string. Both good ideas.. Though I don't know if a presentation can get access to the entire object. > So in my attempt at solving this, I have two options, ":present-as > (html-function :on-obj #'some-function)" which can operate on the > entire class object, or ":present-as (html-function :on-value #'some- > function)" which does the same thing as your, more well written, > function above. > > What remains to be done is to have the (b) part done which allows a > short hand for simple formatting, e.g. :present-as (value-format "$, > 2f") A shorthand notation will be useful. > (null (str value))))))) I will post what presentation code I have, it is pre 0.8.2 so will need review... -- Con i migliori saluti, Nandan -- 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.
