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

Stephan Eggermont stephan at stack.nl
Tue Aug 20 08:56:45 UTC 2013


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 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20130820/ba66cc14/attachment-0001.htm


More information about the seaside mailing list