Re: Is there a sane way to make seaside config edits (like custom session) programatically?

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

Re: Is there a sane way to make seaside config edits (like custom session) programatically?

Stephan Eggermont-3
All the things you do through the web interface can be done programmatically.

In the seaside application root class of StoryBoard, SBMain, we have:

SBMain>updateRoot: anHtmlRoot
        super updateRoot: anHtmlRoot.
        anHtmlRoot title: 'StoryBoard'.
        anHtmlRoot link
                type: 'text/css';
                beStylesheet;
                addAll;
                url: SBFileLibrary / 'main.css';
                yourself

SBMain>>initialize
        "Registers this applicaton as webpage
                SBMain initialize.
        "
        super initialize.
        (WAAdmin register: self asApplicationAt: 'story')
                preferenceAt: #sessionClass
                        put: SBPublicSession;
                addLibrary: JQDeploymentLibrary;
                addLibrary: JQUiDeploymentLibrary;
                yourself

updateRoot is instance side, initialize is class side.

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