Configurations

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

Configurations

Patrick Collison
Hi,

I'm trying to learn a little about how to correctly use configurations
in Seaside. Has anything being written on the topic? The best thing
I've found is a mail to this list a while ago from Avi Bryant that
gives a rough overview of their goals.

My particular problem right now is to do with obtaining the value of
an attribute from outside of a subclass of WAComponent: I've added a
subclass of WAConfiguration to my application, and this is used to set
the foo parameter. I want other classes in the system to be able to
access the value of this. Right now, I hack it in a pretty ugly way by
doing "(WADispatcher default entryPoints at: 'myApp') configuration
valueAt: #foo".

I know that this is ugly design on some level (e.g. if one Squeak
image wanted to run two instances of my application, it could cause
problems), but this method at least allows me to do all configuration
from within the browser.

Ideally I'd be able to update a class instance variable of some class
every time the WAConfiguration-subclass's parameter is changed (so
that I can then get the value by doing FooClass foo). Can this be
easily achieved?

Cheers,

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

Re: Configurations

Damien Cassou-3
2007/5/12, Patrick Collison <[hidden email]>:
> I'm trying to learn a little about how to correctly use configurations
> in Seaside. Has anything being written on the topic? The best thing
> I've found is a mail to this list a while ago from Avi Bryant that
> gives a rough overview of their goals.

http://www.shaffer-consulting.com/david/SeasideConfiguration/SeasideConfigurations.html

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

Re: Configurations

Patrick Collison
On 13/05/07, Damien Cassou <[hidden email]> wrote:
> http://www.shaffer-consulting.com/david/SeasideConfiguration/SeasideConfigurations.html

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

Re: Configurations

Patrick Collison
In reply to this post by Damien Cassou-3
On 13/05/07, Damien Cassou <[hidden email]> wrote:
> http://www.shaffer-consulting.com/david/SeasideConfiguration/SeasideConfigurations.html

I just read through this, and the User Configurations seem to be what
I'm looking for. The article has this to say: "In the Seaside "config"
app, click the "Edit Configurations" link and then enter a new
configuration name, maybe "standard store" in the New Configuration
text box and click "Add". You are presented with a configuration
editor but you are not configuring any application in particular, just
building a template.". I can't see any "Edit Configurations" link --
has this changed, or do I need to do something first?

Cheers,

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