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

Re: Magritte examples in seaside/examples/examplebrowser

by Lukas Renggli-2 :: Rate this Message:

Reply to Author | View in Thread

> 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.
I am unable to reproduce? How did you trigger this DNU? What is the  
stack trace?

> 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.
MAContainer is like a collection of descripiton. What breaks with the  
current code? Why do you need to change it?

Cheers,
Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch




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

smime.p7s (5K) Download Attachment

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

LightInTheBox - Buy quality products at wholesale price