[Seaside] Setup Pier environment

dtrussardi at tiscali.it dtrussardi at tiscali.it
Thu Oct 23 19:16:42 UTC 2014


Dale,

	thanks,
> Dario,
> 
> The #currentVersion algorithm does a match between the packages loaded and the specifications and the match is based on "latest version matching" and this is an inexact science (as you've seen) ... Most likely in the case you are wondering about, the gemstone packges are identical between version 3.0.4 and 3.1.1 so the #currentVersion algorithm matches 3.1.1.
> 
> You've probably seen that these days I recommend using the scripting api where you would do 
> the load this way:

>   Metacello new
>     configuration: 'Pier3AddOns';
>     version: '3.0.4';
>     load.

but in my Pharo 2.0  #20628	 image i don't have Metacello class!

I do:
	Gofer new
 			squeaksource: 'MetacelloRepository';
			package: 'ConfigurationOfMetacello';
  			load.

( ConfigurationOfMetacello project version: #stable) load
	
But i don't found the relative class.


Ciao,
	
	Dario

> 
> then print the following to check which version has been loaded:
>  
>   Metacello image
>     configuration: 'Pier3AddOns;
>     list.
> 
> With the scripting API, #currentVersion is loaded. Instead Metacello records the version (project spec) of the project that was actually loaded and is much more accurate ...
> 
> You do have to use the the `Metacello new` style load expressions to cause projects to be registered ...
> 
> Dale
> 
> On Thu, Oct 23, 2014 at 9:46 AM, dtrussardi at tiscali.it <dtrussardi at tiscali.it> wrote:
> Ciao,
> 
> First i load:
> 	
> 	Gofer new
>     	url: 'http://www.squeaksource.com/MetacelloRepository';
> 
>    	 package: 'ConfigurationOfPier3AddOns';
> 
>     	load.
> 
> 		
> After i do :	
> 	 ( ConfigurationOfPier3AddOns project version: '3.0.4') load.
> now i don't understund because after :
> 
> 	ConfigurationOfPier3AddOns project currentVersion. 	
> 
> 	answer 		<>3.1.1 [ConfigurationOfPier3AddOns]
> 
> 		and not 3.0.4
> 
> Thanks,
> 
> 	Dario
>  
> 
> 
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> 
> 
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20141023/54e68c38/attachment-0001.htm


More information about the seaside mailing list