Switching on toolframe

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

Switching on toolframe

NorbertHartl
Is there an easy to switch on the WAToolFrame in seaside?
I like to have my application in deployment mode but want
to be able to switch on the WAToolFrame via an admin command
or something similar. Is this possible?

thanks,

Norbert

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Switching on toolframe

Lukas Renggli
In Seaside 2.9 it is easy, because it is a decoration that can be
added and removed at any time. In Seaside 2.8 and earlier it is more
difficult, because it is a component that wraps the root component of
your application. Maybe the eadiest is to subclass and only display
the tools conditionally?

Lukas

On Saturday, April 25, 2009, Norbert Hartl <[hidden email]> wrote:

> Is there an easy to switch on the WAToolFrame in seaside?
> I like to have my application in deployment mode but want
> to be able to switch on the WAToolFrame via an admin command
> or something similar. Is this possible?
>
> thanks,
>
> Norbert
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Switching on toolframe

keith1y
Lukas Renggli wrote:

> In Seaside 2.9 it is easy, because it is a decoration that can be
> added and removed at any time. In Seaside 2.8 and earlier it is more
> difficult, because it is a component that wraps the root component of
> your application. Maybe the eadiest is to subclass and only display
> the tools conditionally?
>
> Lukas
>
> On Saturday, April 25, 2009, Norbert Hartl <[hidden email]> wrote:
>  
>> Is there an easy to switch on the WAToolFrame in seaside?
>> I like to have my application in deployment mode but want
>> to be able to switch on the WAToolFrame via an admin command
>> or something similar. Is this possible?
>>
>> thanks,
>>
>> Norbert
>>    

In seaside28Jetsam there is a toolbar helper. This displays the toolbar
as a decoration when

self session  useToolbar:  true.

Therefore you can enable the toolbar for those users that have certain
privileges when they login

Keith

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