<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>Re: WAFileLibrary and non-alphanumerics</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Mind you the whole class versus instance there seems a little arbitrary, we should just move it all one way it seems.<BR>
<BR>
Cheers!<BR>
<BR>
-Boris<BR>
(Sent from a BlackBerry)<BR>
<BR>
----- Original Message -----<BR>
From: Boris Popov<BR>
To: 'Seaside - general discussion' &lt;seaside@lists.squeakfoundation.org&gt;<BR>
Sent: Tue Oct 16 11:19:22 2007<BR>
Subject: WAFileLibrary and non-alphanumerics<BR>
<BR>
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.<BR>
<BR>
(class) asSelector: aFilename<BR>
&nbsp;^('hex' , aFilename asByteArray asHexString) asSymbol.<BR>
<BR>
isFileSelector: aSymbol<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^aSymbol startsWith: 'hex'.<BR>
<BR>
asFilename: aSelector<BR>
&nbsp;^(ByteArray fromHexString: (aSelector<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; copyFrom: 4<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; to: aSelector size)) asString.<BR>
<BR>
Cheers,<BR>
<BR>
-Boris<BR>
<BR>
--<BR>
+1.604.689.0322<BR>
DeepCove Labs Ltd.<BR>
4th floor 595 Howe Street<BR>
Vancouver, Canada V6C 2T5<BR>
<A HREF="http://tinyurl.com/r7uw4">http://tinyurl.com/r7uw4</A><BR>
<BR>
boris@deepcovelabs.com<BR>
<BR>
CONFIDENTIALITY NOTICE<BR>
<BR>
This email is intended only for the persons named in the message<BR>
header. Unless otherwise indicated, it contains information that is<BR>
private and confidential. If you have received it in error, please<BR>
notify the sender and delete the entire message including any<BR>
attachments.<BR>
<BR>
Thank you.<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>