Create temporary context - PIER

Pierre-Emmanuel QUEYREL Pierre-Emmanuel.Queyrel at etu.univ-savoie.fr
Mon Apr 30 16:11:27 MEST 2007


Thank you for your answer. In fact, at the beginning I wanted just to 
test my code directly under squeak without using a Widget.


Pe

Lukas Renggli a écrit :
> Hi Pierre-Emmanue,
>
>   
>> I would like to create a Widget for PIER which will generate a HTML  
>> page
>> by using the tree structure of PIER with a visitor. Currently I have
>> created a test by creating a visitor who overloads PRViewRenderer  
>> (PIER
>> -SEASIDE). Unfortunately I encounter a problem of context when I  
>> launch
>> my app. Can you help me to understand how to create a temporary  
>> context?
>>     
>
> I wonder why you need a new context for that?
>
> If you subclass PRWidget you have the current context in 'self  
> context' and you can find out about the kernel by evaluating 'self  
> context kernel'.
>
> Have a look at PRTreeWidget that does something like that already. It  
> doesn't use a visitor, but it queries all the information you need to  
> start your visitor.
>
> Cheers,
> Lukas
>
>   


More information about the smallwiki mailing list