[Seaside] Re: Distributing other than HTML content

Samuel Tardieu sam at rfc1149.net
Mon Nov 8 18:00:25 CET 2004


>>>>> "Sam" == Samuel Tardieu <sam at rfc1149.net> writes:

Sam> I need to distribute dynamically generated binary content
Sam> (presented as a MIME document) directly from Seaside, without
Sam> going through an HTML page first and through a link.

I've done it but it's not very clean:

renderContentOn: html
	self feed refreshFeed.
	self session returnResponse:
		(WAResponse new
			contentType: 'text/xml';
			nextPutAll: self feed asXML;
			yourself)

Is there a better place to do this?

  Sam
-- 
Samuel Tardieu -- sam at rfc1149.net -- http://www.rfc1149.net/sam



More information about the Seaside mailing list