DNU in my code from latest Magritte

View: New views
5 Messages — Rating Filter:   Alert me  

DNU in my code from latest Magritte

by Randal L. Schwartz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


result := myModel asComponent. "returns an MAContainerComponent"
result description attributes addClass: 'gcbpagemodel'.

Apparently, MADescription no longer understands #attributes.

what do I call #addClass: on now?

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@...> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

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

Re: DNU in my code from latest Magritte

by Randal L. Schwartz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>>>>> "Randal" == Randal L Schwartz <merlyn@...> writes:

Randal> result := myModel asComponent. "returns an MAContainerComponent"
Randal> result description attributes addClass: 'gcbpagemodel'.

Randal> Apparently, MADescription no longer understands #attributes.

Randal> what do I call #addClass: on now?

And after commenting that out, I get a DNU here:

MACssRenderer>>renderContainer:

renderContainer: aDescription
  html definitionList
    attributes: aDescription attributes; "HERE"
    class: (self classFor: aDescription);
    with: [super renderContainer: aDescription]

That's not my code.

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@...> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

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

Re: DNU in my code from latest Magritte

by Lukas Renggli-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> result := myModel asComponent. "returns an MAContainerComponent"
> result description attributes addClass: 'gcbpagemodel'.
>
> Apparently, MADescription no longer understands #attributes.
>
> what do I call #addClass: on now?

As before, you just use #cssClass: directly on the description.

#attributes didn't really belong into the description anyway. I think  
like this it is much cleaner.

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

Re: DNU in my code from latest Magritte

by Lukas Renggli-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>>>>>> "Randal" == Randal L Schwartz <merlyn@...> writes:

>
> Randal> result := myModel asComponent. "returns an  
> MAContainerComponent"
> Randal> result description attributes addClass: 'gcbpagemodel'.
>
> Randal> Apparently, MADescription no longer understands #attributes.
>
> Randal> what do I call #addClass: on now?
>
> And after commenting that out, I get a DNU here:
>
> MACssRenderer>>renderContainer:
>
> renderContainer: aDescription
>  html definitionList
>    attributes: aDescription attributes; "HERE"
>    class: (self classFor: aDescription);
>    with: [super renderContainer: aDescription]
>
> That's not my code.
I know, I am responsible for all bugs you might encounter.

Name: Magritte-All-lr.258
Author: lr
Time: 10 January 2008, 11:03:26 pm
UUID: a708253b-3616-4fb4-9107-d17b2d6b37fd
Ancestors: Magritte-All-lr.257
Dependencies: Magritte-Model-lr.303, Magritte-Tests-lr.131, Magritte-
Seaside-lr.253, Magritte-Morph-tg.39

- remove #attributes send in MACssRenderer

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

Re: DNU in my code from latest Magritte

by Randal L. Schwartz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>>>>> "Lukas" == Lukas Renggli <renggli@...> writes:

Lukas> I know, I am responsible for all bugs you might encounter.

Lukas> Name: Magritte-All-lr.258
Lukas> Author: lr
Lukas> Time: 10 January 2008, 11:03:26 pm
Lukas> UUID: a708253b-3616-4fb4-9107-d17b2d6b37fd
Lukas> Ancestors: Magritte-All-lr.257
Lukas> Dependencies: Magritte-Model-lr.303, Magritte-Tests-lr.131, Magritte-
Lukas> Seaside-lr.253, Magritte-Morph-tg.39

Lukas> - remove #attributes send in MACssRenderer

So, I see Magritte-Model updated I presume a few hours ago,
which I loaded, and got my DNU.

What is Magritte-All?  Does it also contain code?  Should I be loading
it instead?

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@...> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

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