[Seaside-dev] Issue 198 in seaside: WAResponse should not depend on WAApplication

codesite-noreply at google.com codesite-noreply at google.com
Sun Oct 5 21:29:44 UTC 2008


Issue 198: WAResponse should not depend on WAApplication
http://code.google.com/p/seaside/issues/detail?id=198

New issue report by jfitzell:
See WAResponse>>initialize

It tries to find an application if there is one in order to get the
contentType as specified in the configuration.

This is bogus though because WAResponse should not know anything about
Applications and Sessions and so on (and certainly not in its
initialization). WAResponse should work without even having the Session
package (which provides the #application method) loaded.

Not sure what the correct behaviour is, though. A few thoughts of the top
of my head (though I think they probably all suck):
+ WAApplication obviously has the opportunity to override the mime type
before returning the response, but how does it know if the user
specifically wants a different content type for that response?
+ We could make the user ask the application for a response but that's
pretty ugly.
+ The Session package could add a method on WARequestContext that returns a
response properly configured by the application. Not sure if that's any
less ugly.


Issue attributes:
	Status: Accepted
	Owner: ----
	Labels: Type-Defect Priority-Medium Version-Seaside2.9

-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings


More information about the seaside-dev mailing list