[Seaside] VisualWorks + WebServers

Boris Popov boris at deepcovelabs.com
Wed Jul 25 00:02:56 UTC 2007


Michael,

Also, here are the two hacks I'd put in to get UTF8 output via Swazoo, I
imagine it would make sense to have the new setup work with UTF8 streams
by default without having to do these kinds of adjustments,

SeasidePlatformSupport>>readWriteStream
 ^EncodedStream
   on: (ReadWriteStream on: (ByteArray new: 1000))
   encodedBy: (StreamEncoder new: #utf8)

SeasideResource>>convertResponse: waResponse
  ...
 swazooResponse entity:
  ((waResponse contents class = EncodedStream)
         ifTrue: [waResponse contents stream contents]
         ifFalse: [waResponse contents contents]).

HTTPResponse>>entity: anEntity
 entity := anEntity isString
		ifTrue: [anEntity asByteArrayEncoding: #utf8]
		ifFalse: [anEntity asByteArray].

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.

> -----Original Message-----
> From: seaside-bounces at lists.squeakfoundation.org [mailto:seaside-
> bounces at lists.squeakfoundation.org] On Behalf Of Boris Popov
> Sent: Tuesday, July 24, 2007 4:53 PM
> To: Seaside - general discussion
> Subject: RE: [Seaside] VisualWorks + WebServers
> 
> Cool, feel free to use me as a guinea pig if you'd like external
> feedback at some point.
> 
> 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.
> 
> > -----Original Message-----
> > From: seaside-bounces at lists.squeakfoundation.org [mailto:seaside-
> > bounces at lists.squeakfoundation.org] On Behalf Of Michael Lucas-Smith
> > Sent: Tuesday, July 24, 2007 4:51 PM
> > To: Seaside - general discussion
> > Subject: Re: [Seaside] VisualWorks + WebServers
> >
> >
> > > My next obvious question is, when can I take this for a test
drive?
> ;)
> > >
> > Well Martin is getting close to being happy with it. He has it
running
> > against base seaside without a problem - in fact, it runs faster and
> can
> > do some things that you couldn't do before - such as file upload
test
> > didn't run.
> >
> > I can't really speak for him on time frames, but I'll take a punt
and
> > cowardly say a month from now :)
> >
> > Michael
> > _______________________________________________
> > 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


More information about the Seaside mailing list