Michael Rueger wrote:
OK, here we go...
in the Pharo inbox there is a new version of Network-MIME and
KomHTTPServer. The Kom package should also work on Squeak.
ok, one more thing ;-)
Newer version of MIME package plus the attached change for Seaside makes
at least the tests pass.
Michael
'From Pharo0.1 of 16 May 2008 [Latest update: #10243] on 25 February 2009 at
1:09:34 pm'!
!SeasidePlatformSupport class methodsFor: 'factory' stamp: 'michael.rueger
2/25/2009 13:05'!
mimeDocumentOfType: type from: aFilename
"WACachedDocument clearCache.
(WACachedDocument fileName: 'SqueakDebug.log') asMIMEDocument.
(WACachedDocument fileName: 'SqueakDebug.log') asMIMEDocument."
| content mimeType |
mimeType := type ifNil: [
self mimeDocumentClass guessContentTypeFromExtension:
(FileDirectory extensionFor: aFilename) ].
content := (StandardFileStream readOnlyFileNamed: aFilename)
contentsOfEntireFile.
^self mimeDocumentClass
contentType: mimeType
content: content! !
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project