[Seaside] HTTP Server Structure

Avi Bryant avi at beta4.com
Wed Nov 19 20:45:44 CET 2003


On Nov 19, 2003, at 6:27 AM, Stephen Pair wrote:
>
> Actually, it can get more elegant than that.  If the XML-RPC and 
> Seaside modules were both implemented as subclasses of ComancheModule, 
> you could do something like:
>
> | ma |
> ma := ModuleAssembly core.
> ma serverRoot: (FileDirectory on: '/Users/sven/Sites/') fullName.
> ma alias: '/xmlrpc' to: [ma addModule: XMLRPCModule new].
> ma alias: '/seaside' to: [ma addModule: SeasideModule new].

WAKom isn't a subclass of ComancheModule, but I believe I've 
implemented the right methods for this to work (substituting "WAKom 
default" for "SeasideModule new").  You can also use WAKom to wrap any 
individual Seaside request handler (like a single application), you 
don't have to use the default.



More information about the Seaside mailing list