Damien Pollet | 3 Dec 23:35 2007
Picon

Re: Extracting a pier root

On 25/02/2007, Philippe Marschall <philippe.marschall <at> gmail.com> wrote:
> 2007/2/25, Damien Cassou <damien.cassou <at> gmail.com>:
> > what is the best solution to extract a pier website from an image and
> > put the extracted root into another image ?
>
> Assuming you don't use magma:
> I'd say grab the kernel, file it out with ReferenceStream and file it
> in the other image (you'll have to add it to the instances). Maybe
> you'll have to nil out the mutex in the persistency instance, you'll
> find out if filing out will give an error.

I'm trying to do the same... ReferenceStream doesn't work because it
encounters a BlockContext in the process (eg. some Magritte condition
on the number of posts the blog should show).

I'm trying to go the Magma way but it won't install' either via
Universes or MC. Magma seaside says it needs WADispatcherControlPanel
(I'm following the load order from http://wiki.squeak.org/squeak/5902
)

Any suggestion ?

--

-- 
Damien Pollet
type less, do more [ | ] http://typo.cdlm.fasmz.org

_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki

(Continue reading)

Adriaan van Os | 3 Dec 23:40 2007
Picon
Picon

Re: Extracting a pier root

I'm using SIXX to move a site from one image to another.

HTH,
Adriaan.

> On 25/02/2007, Philippe Marschall <philippe.marschall <at> gmail.com> wrote:
>> 2007/2/25, Damien Cassou <damien.cassou <at> gmail.com>:
>> > what is the best solution to extract a pier website from an image and
>> > put the extracted root into another image ?
>>
>> Assuming you don't use magma:
>> I'd say grab the kernel, file it out with ReferenceStream and file it
>> in the other image (you'll have to add it to the instances). Maybe
>> you'll have to nil out the mutex in the persistency instance, you'll
>> find out if filing out will give an error.
>
> I'm trying to do the same... ReferenceStream doesn't work because it
> encounters a BlockContext in the process (eg. some Magritte condition
> on the number of posts the blog should show).
>
> I'm trying to go the Magma way but it won't install' either via
> Universes or MC. Magma seaside says it needs WADispatcherControlPanel
> (I'm following the load order from http://wiki.squeak.org/squeak/5902
> )
>
> Any suggestion ?
>
> --
> Damien Pollet
> type less, do more [ | ] http://typo.cdlm.fasmz.org
(Continue reading)

Damien Pollet | 3 Dec 23:53 2007
Picon

Re: Extracting a pier root

On 03/12/2007, Adriaan van Os <avanos <at> xs4all.nl> wrote:
> I'm using SIXX to move a site from one image to another.

Thanks for the suggestion. Are you doing something particular?
SIXX (latest from squeakmap) doesn't load in my 3.10 image...

>
> HTH,
> Adriaan.
>
> > On 25/02/2007, Philippe Marschall <philippe.marschall <at> gmail.com> wrote:
> >> 2007/2/25, Damien Cassou <damien.cassou <at> gmail.com>:
> >> > what is the best solution to extract a pier website from an image and
> >> > put the extracted root into another image ?
> >>
> >> Assuming you don't use magma:
> >> I'd say grab the kernel, file it out with ReferenceStream and file it
> >> in the other image (you'll have to add it to the instances). Maybe
> >> you'll have to nil out the mutex in the persistency instance, you'll
> >> find out if filing out will give an error.
> >
> > I'm trying to do the same... ReferenceStream doesn't work because it
> > encounters a BlockContext in the process (eg. some Magritte condition
> > on the number of posts the blog should show).
> >
> > I'm trying to go the Magma way but it won't install' either via
> > Universes or MC. Magma seaside says it needs WADispatcherControlPanel
> > (I'm following the load order from http://wiki.squeak.org/squeak/5902
> > )
> >
(Continue reading)

Damien Pollet | 4 Dec 00:04 2007
Picon

Re: Extracting a pier root

My bad, didn't see it in the universes browser.

On 03/12/2007, Damien Pollet <damien.pollet <at> gmail.com> wrote:
> On 03/12/2007, Adriaan van Os <avanos <at> xs4all.nl> wrote:
> > I'm using SIXX to move a site from one image to another.
>
> Thanks for the suggestion. Are you doing something particular?
> SIXX (latest from squeakmap) doesn't load in my 3.10 image...
>
>
> >
> > HTH,
> > Adriaan.
> >
> > > On 25/02/2007, Philippe Marschall <philippe.marschall <at> gmail.com> wrote:
> > >> 2007/2/25, Damien Cassou <damien.cassou <at> gmail.com>:
> > >> > what is the best solution to extract a pier website from an image and
> > >> > put the extracted root into another image ?
> > >>
> > >> Assuming you don't use magma:
> > >> I'd say grab the kernel, file it out with ReferenceStream and file it
> > >> in the other image (you'll have to add it to the instances). Maybe
> > >> you'll have to nil out the mutex in the persistency instance, you'll
> > >> find out if filing out will give an error.
> > >
> > > I'm trying to do the same... ReferenceStream doesn't work because it
> > > encounters a BlockContext in the process (eg. some Magritte condition
> > > on the number of posts the blog should show).
> > >
> > > I'm trying to go the Magma way but it won't install' either via
(Continue reading)

Adriaan van Os | 4 Dec 00:05 2007
Picon
Picon

Re: Extracting a pier root

Haven't tried anything with 3.10. I'm using SIXX 0.2c with 2.9.

> On 03/12/2007, Adriaan van Os <avanos <at> xs4all.nl> wrote:
>> I'm using SIXX to move a site from one image to another.
>
> Thanks for the suggestion. Are you doing something particular?
> SIXX (latest from squeakmap) doesn't load in my 3.10 image...
>
>
>>
>> HTH,
>> Adriaan.
>>
>> > On 25/02/2007, Philippe Marschall <philippe.marschall <at> gmail.com>
>> wrote:
>> >> 2007/2/25, Damien Cassou <damien.cassou <at> gmail.com>:
>> >> > what is the best solution to extract a pier website from an image
>> and
>> >> > put the extracted root into another image ?
>> >>
>> >> Assuming you don't use magma:
>> >> I'd say grab the kernel, file it out with ReferenceStream and file it
>> >> in the other image (you'll have to add it to the instances). Maybe
>> >> you'll have to nil out the mutex in the persistency instance, you'll
>> >> find out if filing out will give an error.
>> >
>> > I'm trying to do the same... ReferenceStream doesn't work because it
>> > encounters a BlockContext in the process (eg. some Magritte condition
>> > on the number of posts the blog should show).
>> >
(Continue reading)

Damien Pollet | 4 Dec 00:42 2007
Picon

Re: Extracting a pier root

On 04/12/2007, Adriaan van Os <avanos <at> xs4all.nl> wrote:
> Haven't tried anything with 3.10. I'm using SIXX 0.2c with 2.9.

wow :)

So serializing the kernel out to a file worked directly, but when
loading the .sixx file back in another image, it tries to put a nil
inside a set, and the set complains. What could replace some object by
a nil like that? unserializable object on one end, or missing classes
in the new image?
I think I have the same classes available, but it's late, I will check later…

Anyway, thanks

> > On 03/12/2007, Adriaan van Os <avanos <at> xs4all.nl> wrote:
> >> I'm using SIXX to move a site from one image to another.
> >
> > Thanks for the suggestion. Are you doing something particular?
> > SIXX (latest from squeakmap) doesn't load in my 3.10 image...
> >
> >
> >>
> >> HTH,
> >> Adriaan.
> >>
> >> > On 25/02/2007, Philippe Marschall <philippe.marschall <at> gmail.com>
> >> wrote:
> >> >> 2007/2/25, Damien Cassou <damien.cassou <at> gmail.com>:
> >> >> > what is the best solution to extract a pier website from an image
> >> and
(Continue reading)

Lukas Renggli | 4 Dec 09:39 2007
Picon
Picon

Re: Extracting a pier root

> So serializing the kernel out to a file worked directly, but when
> loading the .sixx file back in another image, it tries to put a nil
> inside a set, and the set complains. What could replace some object by
> a nil like that? unserializable object on one end, or missing classes
> in the new image?

This sounds like the Set is not properly hashed. Probably due to a bug  
in the SIXX Set serialization.

Cheers,
Lukas

--

-- 
Lukas Renggli
http://www.lukas-renggli.ch

_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki

Lukas Renggli | 4 Dec 09:48 2007
Picon
Picon

Re: Extracting a pier root

>> So serializing the kernel out to a file worked directly, but when
>> loading the .sixx file back in another image, it tries to put a nil
>> inside a set, and the set complains. What could replace some object  
>> by
>> a nil like that? unserializable object on one end, or missing classes
>> in the new image?
>
> This sounds like the Set is not properly hashed. Probably due to a bug
> in the SIXX Set serialization.

It would be really cool if we could get that working.

I find SIXX very interesting because it would potentially allow to  
exchange Pier instances between the different Smalltalk dialects:  
Squeak, GemStone and VisualWorks.

Cheers,
Lukas

--

-- 
Lukas Renggli
http://www.lukas-renggli.ch

_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki

M. Blanc | 4 Dec 11:06 2007
Picon

Re: Extracting a pier root


On 4 Dec 2007, at 09:48, Lukas Renggli wrote:

>>> So serializing the kernel out to a file worked directly, but when
>>> loading the .sixx file back in another image, it tries to put a nil
>>> inside a set, and the set complains. What could replace some object
>>> by
>>> a nil like that? unserializable object on one end, or missing  
>>> classes
>>> in the new image?
>>
>> This sounds like the Set is not properly hashed. Probably due to a  
>> bug
>> in the SIXX Set serialization.
>
> It would be really cool if we could get that working.

These snippets run fine on an out-of-the box Pier from Seaside.530

| stream |
stream := ReferenceStream fileNamed: 'export.obj'.
stream nextPut: (PRKernel instanceNamed: 'Pier') root sixxString.
stream close.

| stream |
stream := ReferenceStream fileNamed: 'export.obj'.
(PRKernel instanceNamed: 'Pier') root: (Object readSixxFrom: stream  
next).
stream close.

(Continue reading)

Damien Pollet | 4 Dec 13:53 2007
Picon

Re: Extracting a pier root

On 04/12/2007, M. Blanc <manuel.blanc <at> gmail.com> wrote:
> >> This sounds like the Set is not properly hashed. Probably due to a
> >> bug
> >> in the SIXX Set serialization.
> >
> > It would be really cool if we could get that working.
>
> These snippets run fine on an out-of-the box Pier from Seaside.530
>
> | stream |
> stream := ReferenceStream fileNamed: 'export.obj'.
> stream nextPut: (PRKernel instanceNamed: 'Pier') root sixxString.
> stream close.

Why use a ReferenceStream to store XML in a file?

> So, what is that is not working?

I'm not sure… I installed a few add-ons and use Pier-Security.
Those refer to classes from the objects inside the PRKernel (so
serializing with a ReferenceStream would end up serializing the whole
class hierarchy. Also, as I said, some objects store BlockContexts
from Magritte conditions, and it seems ReferenceStream doesn't want to
serialize these.

I'm not really clear why SIXX would know better about how to serialize
stuff than ReferenceStream…

--

-- 
Damien Pollet
(Continue reading)


Gmane