Adding Libraries programatically?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Adding Libraries programatically?

Ron Teitelbaum

All,

 

Is there a preferred way to check and add a library programmatically?  Since Seaside is holding configuration information in instances if I don’t save the image I lose SULibrary.

 

I would like to have components that need SULibrary check the application they are installed in and add the library if necessary or alternately it would be nice to add the library at the same time as #registerAsApplication:.  Is anyone doing this or have suggestions on how this should be done?  I saw that WAApplication libraries has the information but I didn’t find an easy way to get to the WAApplication for the component from the component itself.  

 

Thanks,

 

Ron


_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: Adding Libraries programatically?

Boris Popov, DeepCove Labs (SNN)
| app |
app := (self registerAsApplication: 'online')
                preferenceAt: #useSessionCookie put: true;
                preferenceAt: #deploymentMode put: false;
                preferenceAt: #serverProtocol put: #http;
                preferenceAt: #serverPort put: 9009;
                yourself.
(app libraries)
 remove: WAStandardStyles;
 add: SULibrary;
 yourself.

Cheers!

-Boris

--
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5

[hidden email]

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Ron
Teitelbaum
Sent: Wednesday, October 25, 2006 9:24 AM
To: 'The Squeak Enterprise Aubergines Server - general discussion.'
Subject: [Seaside] Adding Libraries programatically?

All,

 

Is there a preferred way to check and add a library programmatically?
Since Seaside is holding configuration information in instances if I
don't save the image I lose SULibrary.

 

I would like to have components that need SULibrary check the
application they are installed in and add the library if necessary or
alternately it would be nice to add the library at the same time as
#registerAsApplication:.  Is anyone doing this or have suggestions on
how this should be done?  I saw that WAApplication libraries has the
information but I didn't find an easy way to get to the WAApplication
for the component from the component itself.  

 

Thanks,

 

Ron

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: Adding Libraries programatically?

Ron Teitelbaum
BINGO!  Thanks!

Ron

> -----Original Message-----
> From: Boris Popov [mailto:[hidden email]]
> Sent: Wednesday, October 25, 2006 12:26 PM
> To: [hidden email]; The Squeak Enterprise Aubergines Server - general
> discussion.
> Subject: RE: [Seaside] Adding Libraries programatically?
>
> | app |
> app := (self registerAsApplication: 'online')
> preferenceAt: #useSessionCookie put: true;
> preferenceAt: #deploymentMode put: false;
> preferenceAt: #serverProtocol put: #http;
> preferenceAt: #serverPort put: 9009;
> yourself.
> (app libraries)
>  remove: WAStandardStyles;
>  add: SULibrary;
>  yourself.
>
> Cheers!
>
> -Boris
>
> --
> +1.604.689.0322
> DeepCove Labs Ltd.
> 4th floor 595 Howe Street
> Vancouver, Canada V6C 2T5
>
> [hidden email]
>
> CONFIDENTIALITY NOTICE
>
> This email is intended only for the persons named in the message
> header. Unless otherwise indicated, it contains information that is
> private and confidential. If you have received it in error, please
> notify the sender and delete the entire message including any
> attachments.
>
> Thank you.
>
> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]] On Behalf Of Ron
> Teitelbaum
> Sent: Wednesday, October 25, 2006 9:24 AM
> To: 'The Squeak Enterprise Aubergines Server - general discussion.'
> Subject: [Seaside] Adding Libraries programatically?
>
> All,
>
>
>
> Is there a preferred way to check and add a library programmatically?
> Since Seaside is holding configuration information in instances if I
> don't save the image I lose SULibrary.
>
>
>
> I would like to have components that need SULibrary check the
> application they are installed in and add the library if necessary or
> alternately it would be nice to add the library at the same time as
> #registerAsApplication:.  Is anyone doing this or have suggestions on
> how this should be done?  I saw that WAApplication libraries has the
> information but I didn't find an easy way to get to the WAApplication
> for the component from the component itself.
>
>
>
> Thanks,
>
>
>
> Ron
>


_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside