[Seaside] Making generated links more understandable

Lawrence Kellogg mac.hive at me.com
Tue Mar 27 14:56:53 UTC 2012

On Mar 27, 2012, at 10:19 AM, Philippe Marschall wrote:

> Am 26. März 2012 19:06 schrieb Lawrence Kellogg <mac.hive at me.com>:
>> Thanks Lukas and Phillipe.
>>  It looks like this:
>> updateUrl: aUrl
>>        super updateUrl: aUrl.
>>        aUrl addToPath: self class name
>> will give me what I want. What do you think?
> You probably don't want to do this for every component. You may want
> to exclude components that appear multiple times on a page and
> "insignificant" ones (like footer or side bar).

  Yes, I realize that, thanks for pointing it out, Philippe. Unfortunately, putting in the 
addToPath call in even a single component messes up all of my rendering for that component, as I explained in 
another post. I need to fix that problem first….

>> Any drawbacks to doing this?
> If you're on GemStone IIRC class names are Symbols and not Strings
> like in Pharo (or was it the other way around?). And symbols are not
> subtypes of strings, at least not on every platform. So you might want
> to do:
> aUrl addToPath: self class name greaseString

  Yes, good point. I had an asString in there at one point. I'm not clear on what a greaseString is 
but I guess I should find out. 



> Cheers
> Philippe
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

More information about the seaside mailing list