« Return to Thread: Magritte examples in seaside/examples/examplebrowser

Magritte examples in seaside/examples/examplebrowser

by Ch Lamprecht :: Rate this Message:

Reply to Author | View in Thread

Hello,

trying to browse the Magritte examples in examplebrowser I found the following
issues:
One is with
WAComponent class >>
     headerForExampleBrowser
         ^self name = self description
                ifTrue: [ self name ]
                ifFalse: [ self description , ' (' , self name , ')' ]

The 'Comma' op is defined in MADescription and #, tries to send #asContainer to
the following ByteStrings. An DNU Error is thrown.


Another is:

MAExampleEditor instancevariable 'description' is supposed to hold a Collection
- at least it is used that way e.g.:

MADescriptionEditor>>
buildReport
        ^ (MAReport rows: self description
            description: MAElementDescription description)

however it is initialized with:

defaultDescription
        ^MAContainer new.

I changed
MAExampleEditor>>
description
        ^ description ifNil: [
            description := Array with: self defaultDescription ]

(adding the Array constructor) and that works. I don't know if it breaks other
things though...
Thanks for any suggestions and hints.

Cheers, Christoph



_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki

 « Return to Thread: Magritte examples in seaside/examples/examplebrowser

LightInTheBox - Buy quality products at wholesale price!