Re: Checking in

Jupiter Jones <[email protected]> Mon, 24 Feb 2025 09:27:26 +1100
Newsgroups gmane.comp.lang.smalltalk.squeak.seaside
Message-ID <[email protected]>
--===============9075058122511490771==
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_FE21CE96-AC89-4CEF-B66B-2D86919860B3"


--Apple-Mail=_FE21CE96-AC89-4CEF-B66B-2D86919860B3
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

I apologise for the message duplication - I just clicked ok when it =
suggested sending from another account :)

Hi Carl,

Disclaimer: I=E2=80=99ve never used a WAExternalFileLibrary so the =
following is an educated guess, but hopefully gives you enough info.

I typically configure these kind of things on creation of the =
application with something like a #configureApplication: method on the =
class side of my root component...

configureApplication: anApplication
	anApplication preferenceAt: #sessionClass put: MySession.
	anApplication configuration
		addParent: MySystemConfiguration instance.
	anApplication
		addLibrary: WAExternalFileLibrary;
		addLibrary: JQDevelopmentLibrary.
	anApplication
		preferenceAt: #directory put: =E2=80=98/path/to/serve/from=
=E2=80=99.

Then call this method from the method that installs the web app=E2=80=A6

register
	self configureApplication: (WAAdmin register: self =
asApplicationAt: =E2=80=98MyAppName')

Cheers



> On 24 Feb 2025, at 8:56=E2=80=AFam, Carl G <[email protected] =
<mailto:[email protected]>> wrote:
>=20
> I'm trying a few things trying to make my application serve static =
files.  Run BASIC dynamically generates PNG files that are rendered into =
the web page, but I cannot figure out how to make it work after hours of =
head banging.  The old version of Seaside allows me to add =
WAExternalFileLibrary in the configuration page.  But I cannot do this =
with Seaside 3.5.1 on VW for some reason.  If I try to do the following, =
I get a debugger when I launch the app.
>=20
>   (WADispatcher default handlers at: 'runbasicpersonal')=20
>     addLibrary: WAExternalFileLibrary
>=20
> If I substitute WAFileLibrary it doesn't blow up, but it doesn't seem =
to do anything either.  Putting a breakpoint in the handle: method for =
the instance of WAFileLibrary does not stop.  It seems that the =
WAFileLibrary is not being used.  My guess is that it's only for serving =
'files' that are in-memory anyways but I tried it just to see if I could =
anything work.
>=20
> Any ideas?  What the simplest possible way to add external file =
serving to my Seaside app?  I absolutely do not want my users to need =
Apache or something else.  The current version doesn't require it.
>=20
> Thanks in advance.
>=20
> -Carl Gundel, author of Run BASIC
> http://www.runbasic.com =
<http://www.runbasic.com/>_______________________________________________
> seaside mailing list -- [email protected] =
<mailto:[email protected]>
> To unsubscribe send an email to =
[email protected] =
<mailto:[email protected]>=

--Apple-Mail=_FE21CE96-AC89-4CEF-B66B-2D86919860B3
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"content-type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"overflow-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;"><div>I =
apologise for the message duplication - I just clicked ok when it =
suggested sending from another account :)</div><div><br></div>Hi =
Carl,<div><br></div><div>Disclaimer: I=E2=80=99ve never used =
a&nbsp;<span style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, =
0);">WAExternalFileLibrary so the following is an educated guess, but =
hopefully gives you enough info.</span><br><div><br></div><div>I =
typically configure these kind of things on creation of the application =
with something like a #configureApplication: method on the class side of =
my root component...</div><div><br></div><div><div>configureApplication: =
anApplication</div><div><span class=3D"Apple-tab-span" =
style=3D"white-space: pre;">	</span>anApplication preferenceAt: =
#sessionClass put: MySession.</div><div><span class=3D"Apple-tab-span" =
style=3D"white-space: pre;">	</span>anApplication =
configuration</div><div><span class=3D"Apple-tab-span" =
style=3D"white-space: pre;">		</span>addParent: =
MySystemConfiguration instance.</div><div><span class=3D"Apple-tab-span" =
style=3D"white-space: pre;">	</span>anApplication</div><div><span =
class=3D"Apple-tab-span" style=3D"white-space: pre;">		=
</span>addLibrary: WAExternalFileLibrary;</div><div><span =
class=3D"Apple-tab-span" style=3D"white-space: pre;">		=
</span>addLibrary: JQDevelopmentLibrary.</div><div><span =
class=3D"Apple-tab-span" style=3D"white-space: pre;">	=
</span>anApplication</div><div><span class=3D"Apple-tab-span" =
style=3D"white-space: pre;">		</span>preferenceAt: #directory =
put: =E2=80=98/path/to/serve/from=E2=80=99.</div><div><br></div><div>Then =
call this method from the method that installs the web =
app=E2=80=A6</div><div><br></div><div><div>register</div><div><span =
class=3D"Apple-tab-span" style=3D"white-space: pre;">	</span>self =
configureApplication: (WAAdmin register: self asApplicationAt: =
=E2=80=98MyAppName')</div></div><div><br></div><div>Cheers</div></div></di=
v><div><br></div><div><br></div><div><br><blockquote type=3D"cite" =
style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><div>On 24 Feb =
2025, at 8:56=E2=80=AFam, Carl G &lt;<a =
href=3D"mailto:[email protected]">[email protected]</a>&gt; =
wrote:</div><br class=3D"Apple-interchange-newline"><div><div =
dir=3D"ltr">I'm trying a few things trying to make my application serve =
static files.&nbsp; Run BASIC dynamically generates PNG files that are =
rendered into the web page, but I cannot figure out how to make&nbsp;it =
work after hours of head banging.&nbsp; The old version of Seaside =
allows me to add WAExternalFileLibrary in the configuration page.&nbsp; =
But I cannot do this with Seaside 3.5.1 on VW for some reason.&nbsp; If =
I try to do the following, I get a debugger when I launch the =
app.<div><br></div><div>&nbsp; (WADispatcher default handlers at: =
'runbasicpersonal')&nbsp;<br>&nbsp; &nbsp; addLibrary: =
WAExternalFileLibrary<br><br></div><div>If I substitute WAFileLibrary it =
doesn't blow up, but it doesn't seem to do&nbsp;anything either.&nbsp; =
Putting a breakpoint in the handle: method for the instance of =
WAFileLibrary does not stop.&nbsp; It seems that the WAFileLibrary is =
not being used.&nbsp; My guess is that it's only for serving 'files' =
that are in-memory anyways but I tried it just to see if I could =
anything work.</div><div><br></div><div>Any ideas?&nbsp; What the =
simplest possible way to add external file serving to my Seaside =
app?&nbsp; I absolutely do not want my users to need Apache or something =
else.&nbsp; The current version doesn't require =
it.</div><div><br></div><div>Thanks in =
advance.</div><div><br></div><div>-Carl Gundel, author of Run =
BASIC</div><div><a =
href=3D"http://www.runbasic.com/">http://www.runbasic.com</a></div></div>_=
______________________________________________<br>seaside mailing list =
--&nbsp;<a =
href=3D"mailto:[email protected]">[email protected]=
ndation.org</a><br>To unsubscribe send an email to&nbsp;<a =
href=3D"mailto:[email protected]">seaside-leave@lis=
ts.squeakfoundation.org</a></div></blockquote></div></body></html>=

--Apple-Mail=_FE21CE96-AC89-4CEF-B66B-2D86919860B3--

--===============9075058122511490771==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
seaside mailing list -- [email protected]
To unsubscribe send an email to [email protected]

--===============9075058122511490771==--