[Pharo-project] Seaside 3.1 on Pharo 2.0

Sven Van Caekenberghe sven at stfx.eu
Wed Aug 29 09:50:53 CEST 2012


I am happy to report that, thanks to some extra work done by Philippe Marschall - Thx, Philippe ! -, 
there is now a way to get Seaside 3.1 working on the current version of Pharo 2.0.

The trick is to use the following script:

https://github.com/renggli/builder/blob/master/scripts/seaside31-pharo2.st

Here is the code to execute in a Workspace:

"Basic"
Gofer new
	squeaksource: 'Seaside31';
	package: 'Grease-Core';
	package: 'Grease-Pharo20-Core';
	package: 'Grease-Tests-Core';
	package: 'Grease-Tests-Pharo20-Core';
	package: 'Seaside-Core';
	package: 'Seaside-Pharo20-Core';
	package: 'Seaside-Tests-Core';
	package: 'Seaside-Tests-UTF8';
	package: 'Seaside-Tests-Pharo20-Core';
	package: 'Seaside-Canvas';
	package: 'Seaside-Pharo-Canvas';
	package: 'Seaside-Tests-Canvas';
	package: 'Seaside-Session';
	package: 'Seaside-Tests-Session';
	package: 'Seaside-Component';
	package: 'Seaside-Tests-Component';
	package: 'Seaside-RenderLoop';
	package: 'Seaside-Tests-RenderLoop';
	package: 'Seaside-Tools-Core';
	package: 'Seaside-Widgets';
	package: 'Seaside-Environment';
	package: 'Seaside-Pharo-Environment';
	package: 'Seaside-Tests-Environment';
	load.
!
"Traditional"
Gofer new
	squeaksource: 'Seaside31';
	package: 'Seaside-Tests-Functional';
	package: 'Seaside-Tests-Pharo-Functional';
	package: 'Seaside-Pharo-Continuation';
	package: 'Seaside-Tests-Pharo-Continuation';
	package: 'Seaside-Flow';
	package: 'Seaside-Pharo-Flow';
	package: 'Seaside-Tests-Flow';
	package: 'Seaside-Tools-Web';
	package: 'Seaside-Pharo20-Tools-Web';
	package: 'Seaside-Tests-Tools-Web';
	package: 'Seaside-Development';
	package: 'Seaside-Pharo-Development';
	package: 'Seaside-Tests-Development';
	package: 'Seaside-Tests-Pharo-Development';
	package: 'Seaside-Examples';
	package: 'Seaside-Tests-Examples';
	load.
!
"RSS"
Gofer new
	squeaksource: 'Seaside31';
	package: 'RSS-Core';
	package: 'RSS-Tests-Core';
	package: 'RSS-Examples';
	load.
!
"Javascript"
Gofer new
	squeaksource: 'Seaside31';
	package: 'Javascript-Core';
	package: 'Seaside-JSON-Core';
	package: 'Seaside-Pharo-JSON-Core';
	package: 'Javascript-Pharo20-Core';
	package: 'Javascript-Tests-Core';
	package: 'Javascript-Tests-Pharo-Core';
	package: 'Seaside-Tests-JSON';
	package: 'JQuery-Core';
	package: 'JQuery-Tests-Core';
	package: 'JQuery-JSON';
	package: 'JQuery-Tests-JSON';
	package: 'JQuery-UI';
	package: 'JQuery-Tests-UI';
	package: 'Prototype-Core';
	package: 'Prototype-Tests-Core';
	package: 'Scriptaculous-Core';
	package: 'Scriptaculous-Tests-Core';
	package: 'Scriptaculous-Components';
	package: 'Scriptaculous-Tests-Components';
	package: 'Comet-Core';
	package: 'Comet-Examples';
	package: 'Comet-Pharo-Core';
	package: 'Comet-Tests-Core';
	load.
!
"Other Packages"
Gofer new
	squeaksource: 'Seaside31';
	package: 'Seaside-Welcome';
	package: 'Seaside-Pharo-Welcome';
	package: 'Seaside-Tests-Welcome';
	package: 'Seaside-HTML5';
	package: 'Seaside-Tests-HTML5';
	package: 'Seaside-InternetExplorer';
	package: 'Seaside-Tests-InternetExplorer';
	package: 'Seaside-Email';
	package: 'Seaside-Tests-Email';
	package: 'Seaside-Pharo-Email';
	package: 'Seaside-Tests-Pharo-Email';
	load.
!
"REST"
Gofer new
	squeaksource: 'Seaside31';
	package: 'Seaside-REST-Core';
	package: 'Seaside-Pharo-REST-Core';
	package: 'Seaside-Tests-REST-Core';
	load.


This does not yet load an adaptor. 
You can go find ZnZincServerAdaptor in the Zinc repository, like this (updating all Zn):

Gofer new
	url: 'http://mc.stfx.eu/ZincHTTPComponents';
	package: 'Zinc-HTTP';
	package: 'Zinc-Tests;
	package: 'Zinc-FileSystem';
	package: 'Zinc-Seaside';
	load.

And finally,

ZnZincStaticServerAdaptor startOn: 8080.
ZnZincStaticServerAdaptor stop.

(The Seaside control panel is not there). 

All but one, less relevant test, pass.

Thanks again, Philippe.


Sven


PS: The ConfigurationOfSeaside is in the process to be updated as well.


--
Sven Van Caekenberghe
http://stfx.eu
Smalltalk is the Red Pill






More information about the Pharo-project mailing list