Capture/dump the output of a task

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Capture/dump the output of a task

bahman
Hi all,

Is it possible to capture/dump the rendered result of a Task?  Consider
the following pseudo-code:

<code>

SomeComponent>>#renderContentOn: h
        .
        .
        .
        h render: (SomeTask new; go).
        .
        .
        .

</code>

TIA,
--
Bahman Movaqar  (http://BahmanM.com)
ERP Evaluation, Implementation, Deployment Consultant
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Capture/dump the output of a task

bahman
On 2013-06-01 11:36, Bahman Movaqar wrote:

> Hi all,
>
> Is it possible to capture/dump the rendered result of a Task?  Consider
> the following pseudo-code:
>
> <code>
>
> SomeComponent>>#renderContentOn: h
> .
> .
> .
> h render: (SomeTask new; go).
> .
> .
> .
>
> </code>

Solved.  I couldn't do it because of a mistake on my side.

For the record, this is how I did it:

<code>

WAComponent subclass: #SomeComponent
        instanceVariableNames: 'someTask'
        classVariableNames: ''
        poolDictionaries: ''
        category: ''

SomeComponent>>#initialize
        self someTask: SomeTask new.

SomeComponent>>#children
        ^ Array with: self someTask.

SomeComponent>>#renderContentOn: h
        h render: self someTask.

</code>

--
Bahman Movaqar  (http://BahmanM.com)
ERP Evaluation, Implementation, Deployment Consultant
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Capture/dump the output of a task

mozillanerd
Bahman Movaqar <Bahman <at> BahmanM.com> writes:

>...
Thanks for sharing the solution; oftentimes we don't put the solution we
have been helped to arrive at.



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside