[Seaside] Re: WAFileLibrary and non-alphanumerics

Philippe Marschall philippe.marschall at gmail.com
Tue Oct 16 19:03:04 UTC 2007


2007/10/16, Boris Popov <boris at deepcovelabs.com>:
>
>
>
> Mind you the whole class versus instance there seems a little arbitrary, we
> should just move it all one way it seems.

That's right. One thing to keep in mind is that file library is not
and never was supposed to be fully fledged or intended for production
use. It's merely for cases where you would want to have the
Scriptaculous examples work without an internet connection.

Cheers
Philippe

>  Cheers!
>
>  -Boris
>  (Sent from a BlackBerry)
>
>
>  ----- Original Message -----
>  From: Boris Popov
>  To: 'Seaside - general discussion'
> <seaside at lists.squeakfoundation.org>
>  Sent: Tue Oct 16 11:19:22 2007
>  Subject: WAFileLibrary and non-alphanumerics
>
>  In case anyone else comes across a case where filenames include
> non-alphanumeric characters like dashes and underscores, you'll notice they
> get stripped by default, which won't work very well with your style-sheets.
> I'd made the following three changes in my subclass of it, sacrificing
> readability a bit, but it's not like I ever look at selectors there anyway.
>
>  (class) asSelector: aFilename
>   ^('hex' , aFilename asByteArray asHexString) asSymbol.
>
>  isFileSelector: aSymbol
>          ^aSymbol startsWith: 'hex'.
>
>  asFilename: aSelector
>   ^(ByteArray fromHexString: (aSelector
>                                          copyFrom: 4
>                                          to: aSelector size)) asString.
>
>  Cheers,
>
>  -Boris
>
>  --
>  +1.604.689.0322
>  DeepCove Labs Ltd.
>  4th floor 595 Howe Street
>  Vancouver, Canada V6C 2T5
>  http://tinyurl.com/r7uw4
>
>  boris at deepcovelabs.com
>
>  CONFIDENTIALITY NOTICE
>
>  This email is intended only for the persons named in the message
>  header. Unless otherwise indicated, it contains information that is
>  private and confidential. If you have received it in error, please
>  notify the sender and delete the entire message including any
>  attachments.
>
>  Thank you.
>
>
>
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>


More information about the seaside mailing list