<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:m =
"http://schemas.microsoft.com/office/2004/12/omml"><HEAD><TITLE>Re: [Seaside] updateRoot: Weirdness</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16481" name=GENERATOR>
<STYLE>@font-face {
        font-family: Wingdings;
}
@font-face {
        font-family: Wingdings;
}
@font-face {
        font-family: Calibri;
}
@font-face {
        font-family: Tahoma;
}
@font-face {
        font-family: Verdana;
}
@page Section1 {size: 612.0pt 792.0pt; margin: 72.0pt 72.0pt 72.0pt 72.0pt; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman","serif"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman","serif"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman","serif"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.EmailStyle17 {
        COLOR: #1f497d; FONT-FAMILY: "Calibri","sans-serif"; mso-style-type: personal-reply
}
.MsoChpDefault {
        FONT-SIZE: 10pt; mso-style-type: export-only
}
DIV.Section1 {
        page: Section1
}
OL {
        MARGIN-BOTTOM: 0cm
}
UL {
        MARGIN-BOTTOM: 0cm
}
</STYLE>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-ZA vLink=purple link=blue bgColor=#ffffff>
<DIV><FONT face=Verdana>Sorry, it still didn't help. This is so frustrating! How
can something so basic and fundamental to Seaside be so
problematic?!!</FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana>Regards,</FONT></DIV>
<DIV><FONT face=Verdana>Richard</FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=liliana@finworks.biz href="mailto:liliana@finworks.biz">Liliana</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=seaside@lists.squeakfoundation.org
href="mailto:seaside@lists.squeakfoundation.org">'Seaside - general
discussion'</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, July 18, 2007 3:59
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [Seaside] updateRoot:
Weirdness</DIV>
<DIV><BR></DIV>
<DIV class=Section1>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Hi.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">You
probably need to enable file serve. You may have enabled it in your old
image.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">I’ve
got this snippet of code from somewhere, possibly Ramon’ blog... can’t
remember right now...<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">"Kill
all existing Kom HTTP servers"<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">"Start
a new server servering both static content and seaside
apps"<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">|
ma seaside |<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">HttpService
allInstancesDo: [:each | each stop. each unregister].<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">seaside
:= WAKom default.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">ma
:= ModuleAssembly core.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">ma
serverRoot: (FileDirectory default directoryNamed: 'FileRoot')
fullName.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">ma
alias: '/seaside' to: [ma addPlug: [:request | seaside process:
request]].<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">ma
documentRoot: (FileDirectory default directoryNamed: 'FileRoot')
fullName.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">ma
directoryIndex: 'index.html index.htm'.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">ma
serveFiles.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">(HttpService
startOn: 8080 named: 'httpd') plug: ma rootModule.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Hope
it works <o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Liliana<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<DIV>
<DIV
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P class=MsoNormal><B><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN
lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">
Richard Eng [mailto:richard.eng@rogers.com] <BR><B>Sent:</B> 18 July 2007
06:44 AM<BR><B>To:</B> Seaside - general discussion<BR><B>Subject:</B> Re:
[Seaside] updateRoot: Weirdness<o:p></o:p></SPAN></P></DIV></DIV>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><SPAN
style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Verdana','sans-serif'">This is totally
INSANE!!! No matter what I do, I can’t get stylesheets to work in
Seaside.<BR><BR>I even went back to the bare basics...</SPAN><o:p></o:p></P>
<UL type=disc>
<LI class=MsoNormal
style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l1 level1 lfo1"><SPAN
style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Verdana','sans-serif'">I took a
fresh copy of Squeak 3.9 </SPAN><o:p></o:p>
<LI class=MsoNormal
style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l1 level1 lfo1"><SPAN
style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Verdana','sans-serif'">I put a fresh
copy of Damien’s Seaside 2.7 image into the Squeak directory
</SPAN><o:p></o:p>
<LI class=MsoNormal
style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l1 level1 lfo1"><SPAN
style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Verdana','sans-serif'">I put the CSS
files colour.css and styles.css into the same directory (putting it in the
root for simplicity) </SPAN><o:p></o:p>
<LI class=MsoNormal
style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l1 level1 lfo1"><SPAN
style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Verdana','sans-serif'">I subclass
WAComponent to create GSTemplate </SPAN><o:p></o:p>
<LI class=MsoNormal
style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l1 level1 lfo1"><SPAN
style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Verdana','sans-serif'">I create
class method #canBeRoot: for GSTemplate </SPAN><o:p></o:p>
<LI class=MsoNormal
style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l1 level1 lfo1"><SPAN
style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Verdana','sans-serif'">I create
#updateRoot:</SPAN><o:p></o:p> </LI></UL>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Verdana','sans-serif'">super
updateRoot: aRoot.<BR>aRoot linkToStyle: ‘/colour.css’.<BR>aRoot linkToStyle:
‘/styles.css’</SPAN><o:p></o:p></P>
<UL type=disc>
<LI class=MsoNormal
style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo2"><SPAN
style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Verdana','sans-serif'">I create some
HTML in #renderContentOn: </SPAN><o:p></o:p>
<LI class=MsoNormal
style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo2"><SPAN
style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Verdana','sans-serif'">In Seaside
config, I create application “NewApp” using GSTemplate</SPAN><o:p></o:p>
</LI></UL>
<P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><SPAN
style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Verdana','sans-serif'"><BR>I ought to
see the HTML rendered according to the specified stylesheets. What could be
simpler?<BR><BR>But it doesn’t work!<BR><BR>And it worked in my original
development image! For the life of me, I can’t see ANY difference between the
original image and this one. What the hell is going
on???<BR><BR>Richard<BR><BR><BR>On 7/17/07 6:15 PM, "Richard K Eng"
<richard.eng@rogers.com> wrote:</SPAN><o:p></o:p></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Verdana','sans-serif'">Okay, in my
Seaside 2.7 development image, I used updateRoot: to get my app to use CSS
files in a particular location (using linkToStyle:). This works
fine.<BR> <BR>But now I'm trying to create a fresh image and the
updateRoot: method is no longer having the intended effect--the CSS files are
ignored. I must've "accidentally" got it working in the original
image.<BR> <BR>So the question is: How do I correctly apply updateRoot:
to get my app to use CSS
files?<BR> <BR>Thanks,<BR>Richard</SPAN><o:p></o:p></P></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>Seaside mailing
list<BR>Seaside@lists.squeakfoundation.org<BR>http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<BR></BLOCKQUOTE></BODY></HTML>