[Seaside] Template support in Seaside 2.5
Adnan Zaman
adnanzaman at yahoo.com
Wed Jun 22 15:05:01 CEST 2005
Hi Alain,
Your fix works so thanks for that. However, I see that
my html text was not "rendered" as you would expect to
see in a browser. All I saw was the same html text
that I wanted to be rendered.
Not sure if this has anything to do with your another
email in which you asked about rendering problem in
2.5.
-
Adnan
>>Date: Tue, 21 Jun 2005 22:42:30 +0200
>>From: Alain Fischer <alain.fischer at bluewin.ch>
>>Subject: Re: [Seaside] Template support in Seaside
2.5
>>To: "The Squeak Enterprise Aubergines Server -
general discussion."
>> <seaside at lists.squeakfoundation.org>
>>Message-ID:
<daafe26dd5ae1e8b1e8f16ded82f3fdf at bluewin.ch>
>>Content-Type: text/plain; charset=ISO-8859-1;
format=flowed
>>
>>Hi Adnan,
>>
>>For the first issue, I doesn't got a dependency
warning.
>>Here is how I setup my image:
>>- downloaded prebuild image from Avi
>>(http://beta4.com/seaside2/Seaside-2.5.zip)
>>- used SqueakMap Package Loader to install SmaCC
Smalltalk
>>Compiler-Compiler-Runtime version: 4
>>- opened a repository on the disk space containing
>>SeasideTemplate-AFi.1.mcz
>>- loaded this package in the image.
>>
>>For the second issue here is a fix:
>>
>>STTTemplate>>compileIn: aClass
>>
>> | methodNode |
>> methodNode _ Compiler new
>> compile: self asSmalltalkMethod
>> in: aClass
>> notifying: nil
>> ifFail: [^ nil].
>> aClass
>> addSelector: methodNode selector
>> withMethod: (methodNode generate: #(0 0 0 0)).
>> aClass organization
>> classify: methodNode selector
>> under: 'generated'.
>> "aClass compileProgrammatically: self
asSmalltalkMethod classified:
>>'generated'"
>> "| node method |
>> node := Compiler new
>> compile: self asSmalltalkMethod
>> in: aClass
>> notifying: nil
>> ifFail: [self error: 'Syntax Error'].
>> method := node generate: #(0 0 0 0).
>> aClass addSelector: node selector withMethod:
method."
>>
>>
>>and it should work.
>>
>>If you try to run STTTest in Test Runner, you will
notice:
>>'13 run, 12 passes, 0 expected failures, 0 failures,
1 errors, 0
>>unexpected passes'
>>
>>
>>Alain
__________________________________
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
http://mobile.yahoo.com/learn/mail
More information about the Seaside
mailing list