[Seaside-dev] 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:22:57 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


More information about the seaside-dev mailing list