[Seaside] WAFileLibrary / Resource Path

Sebastian Sastre ssastre at seaswork.com
Tue Aug 21 21:28:49 UTC 2007


> > WAStandardFilesPlus does everything you could want, and there is a 
> > config entry you can add**** to your application which selects the 
> > resource baseUrl.
> >
> I was wrong, the #resourceBaseUrl preference is actually 
> already present in the #server group of configuration items. 
> WAStandardFilesPlus uses it if it is set.
> 
> Keith

#baseUrl is answering nil even when resourceBaseUrl is set. I was about to
suggest this:

WAStandardFilesPlus>>baseUrl
	"Answers the URL of the resources holded by the receiver.
	NOTE: it answers a default path unless there is a configured one."
	^ WAUrl fromString: ([:url| url isEmptyOrNil 
						ifTrue: [ WAFileHandler
default baseUrl ]
						ifFalse:[url]] value:
(WACurrentSession value application 
	
preferenceAt: #resourceBaseUrl))

...but I got to go to a meeting now, so can't implement WAUrl>>fromString:
now to see it working

Cheers,

Sebastian
PD: you mention in your previous email that resourceBaseUrl can be set as
http://images.serverfarm.com/sebastian/ but seems to be not possible without
a patch like this how do you archieved that?



More information about the Seaside mailing list