Re: [Pharo-users] how to duplicate document with Voyage

2014-04-17 Thread pharo4s...@free.fr
On 17/4/14 21:45, Esteban Lorenzano wrote: Hi, copy should not mess with the id (unless your objects redefines = and hash). I can take a look if Olivier is around tomorrow. Thanks. I told him to talk to you but this is a really shy guy :) He is pushing Pharo to build other application in the

Re: [Pharo-users] Voyage: how to delete references to objects.

2014-04-17 Thread pharo4s...@free.fr
esteban you should do a pass on the voyage documentation chapter and add this kind of infomration. We can pair write if you want. stef On 17/4/14 17:56, Esteban Lorenzano wrote: On 17 Apr 2014, at 15:18, Norbert Hartl > wrote: Am 17.04.2014 um 15:05 schrieb ol

Re: [Pharo-users] how to duplicate document with Voyage

2014-04-17 Thread Esteban Lorenzano
Hi, copy should not mess with the id (unless your objects redefines = and hash). I can take a look if Olivier is around tomorrow. Esteban On 17 Apr 2014, at 21:41, pharo4s...@free.fr wrote: > Hi norbert > > Olivier was doing a copy but it did not work and we thought that > Voyage should offer

Re: [Pharo-users] how to duplicate document with Voyage

2014-04-17 Thread pharo4s...@free.fr
Ok so what I said was wrong :) On 17/4/14 10:48, olivier auverlot wrote: simply ? Thanks ;-) 2014-04-17 10:42 GMT+02:00 Esteban Lorenzano >: On 17 Apr 2014, at 10:17, Norbert Hartl mailto:norb...@hartl.name>> wrote: > > Am 17.04.2014 um 10:08 schrieb

Re: [Pharo-users] how to duplicate document with Voyage

2014-04-17 Thread pharo4s...@free.fr
Hi norbert Olivier was doing a copy but it did not work and we thought that Voyage should offer a clone or something like that that does not mess up with the id. Because we already corrupted nicely a mongoDB. Stef On 17/4/14 10:17, Norbert Hartl wrote: Am 17.04.2014 um 10:08 schrieb Olivier

Re: [Pharo-users] We need *you* for the upcoming Pharo's website

2014-04-17 Thread pharo4s...@free.fr
please use nice looking font and large ones and go ahead :) On 16/4/14 18:44, kilon alios wrote: I was thinking of creating a screencast to explain in a few minutes why I like Pharo, emphasizing on live coding , the image and the development environment. By coincidence I recorded a test tutoria

Re: [Pharo-users] We need *you* for the upcoming Pharo's website

2014-04-17 Thread Damien Cassou
Hi Kilon, On Wed, Apr 16, 2014 at 6:44 PM, kilon alios wrote: > I was thinking of creating a screencast to explain in a few minutes why I > like Pharo, emphasizing on live coding , the image and the development > environment. By coincidence I recorded a test tutorial yesterday (before > noticing

Re: [Pharo-users] [ANN] BabyMock 2

2014-04-17 Thread Attila Magyar
Hi Christophe, Sorry for my late response. You can use the following syntax to signal an error in response to an incoming message: protocol describe once: mock recv: #msg; signals: Error. Note that the Error is a class not an instance. Or alternatively you can execute an arbitrary block

Re: [Pharo-users] Voyage: how to delete references to objects.

2014-04-17 Thread Norbert Hartl
Am 17.04.2014 um 18:05 schrieb Esteban Lorenzano : > > On 17 Apr 2014, at 16:26, Norbert Hartl wrote: > >> >> Am 17.04.2014 um 15:52 schrieb Sabine Knöfel : >> >>> Hi Norbert, >>> >>> for me the gain within smalltalk is huge because I want to navigate from >>> person to trip and from trip

Re: [Pharo-users] Voyage: how to delete references to objects.

2014-04-17 Thread Esteban Lorenzano
On 17 Apr 2014, at 16:26, Norbert Hartl wrote: > > Am 17.04.2014 um 15:52 schrieb Sabine Knöfel : > >> Hi Norbert, >> >> for me the gain within smalltalk is huge because I want to navigate from >> person to trip and from trip to person by the attributes without asking >> mongo for the corre

Re: [Pharo-users] Voyage: how to delete references to objects.

2014-04-17 Thread Esteban Lorenzano
On 17 Apr 2014, at 15:18, Norbert Hartl wrote: > > Am 17.04.2014 um 15:05 schrieb olivier auverlot : > >> thanks Robert for the explications. >> > It’s Norbert btw. :) > >> I agree with you that's the best way to remove a book is to delete the >> reference in ComicsCollection. >> >> But h

Re: [Pharo-users] Voyage: how to delete references to objects.

2014-04-17 Thread Norbert Hartl
Am 17.04.2014 um 15:52 schrieb Sabine Knöfel : > Hi Norbert, > > for me the gain within smalltalk is huge because I want to navigate from > person to trip and from trip to person by the attributes without asking mongo > for the correspondent object via indexes. > > Don't you think that this i

Re: [Pharo-users] Voyage: how to delete references to objects.

2014-04-17 Thread Sabine Knöfel
Hi Norbert, for me the gain within smalltalk is huge because I want to navigate from person to trip and from trip to person by the attributes without asking mongo for the correspondent object via indexes. Don't you think that this is a question of design of the object model and should not be deci

Re: [Pharo-users] Voyage: how to delete references to objects.

2014-04-17 Thread Norbert Hartl
Sabine, I read the case now the first time. Just one note. Having references in both directions is probably not the best idea if using a non-object store. For navigating the graph it might be good but for persisting it is not. The serialization is a lot more complex if you do and the gain is no

Re: [Pharo-users] Voyage: how to delete references to objects.

2014-04-17 Thread Sabine Knöfel
Hi Olivier, possibly the option VOMongoContainer>>enableMissingContent; is useful to avoid http://forum.world.st/Voyage-image-freeze-VOMongoError-Lazy-reference-not-found-td4703739.html Here is an example: http://esug.org/data/ESUG2013/4-Thu/03-ESUG2013%20-%20VoyageTutorial.pdf Regards Sabine

Re: [Pharo-users] Voyage: how to delete references to objects.

2014-04-17 Thread olivier auverlot
Norbert, Sorry for my mistake ;-) 2014-04-17 15:18 GMT+02:00 Norbert Hartl : > > Am 17.04.2014 um 15:05 schrieb olivier auverlot < > olivier.auver...@gmail.com>: > > thanks Robert for the explications. > > It’s Norbert btw. :) > > I agree with you that's the best way to remove a book is to del

Re: [Pharo-users] Voyage: how to delete references to objects.

2014-04-17 Thread Norbert Hartl
Am 17.04.2014 um 15:05 schrieb olivier auverlot : > thanks Robert for the explications. > It’s Norbert btw. :) > I agree with you that's the best way to remove a book is to delete the > reference in ComicsCollection. > > But how to do that ? Must I simply remove the reference in the ordered

Re: [Pharo-users] Voyage: how to delete references to objects.

2014-04-17 Thread olivier auverlot
thanks Robert for the explications. I agree with you that's the best way to remove a book is to delete the reference in ComicsCollection. But how to do that ? Must I simply remove the reference in the ordered collection ? Voyage will syncronize automatically the data in memory with the content o

Re: [Pharo-users] Voyage: how to delete references to objects.

2014-04-17 Thread Norbert Hartl
Am 17.04.2014 um 13:53 schrieb olivier : > Hi, > > I'm using Voyage in a Pharo application. > > I have two MongoDB collections which are ComicsCollection and ComicsBook. > Each book is attached to a instance of ComicsCollection. The reference of > each book is stored in an ordered collection

[Pharo-users] Voyage: how to delete references to objects.

2014-04-17 Thread olivier
Hi, I'm using Voyage in a Pharo application. I have two MongoDB collections which are ComicsCollection and ComicsBook. Each book is attached to a instance of ComicsCollection. The reference of each book is stored in an ordered collection (in the instance of ComicsCollection). The problem is th

Re: [Pharo-users] We need *you* for the upcoming Pharo's website

2014-04-17 Thread Esteban Lorenzano
for this specific request, is images *of pharo* (because is for the home page)… but we welcome also screenshots of cool things made with pharo, to prepare a showcase :) Esteban On 17 Apr 2014, at 02:45, Esteban A. Maringolo wrote: > Sorry but I don't fully understand the request. > > You wan

Re: [Pharo-users] RDBMS Atomic Counter?

2014-04-17 Thread Esteban Lorenzano
but I’m with Sven here, you should use sequences (unless there is something that prevents you to do it… ?). Esteban On 17 Apr 2014, at 11:50, itli...@schrievkrom.de wrote: > I think this is simply a case of optimistic locking - there is a general > way and very often db specific ways > > firs

Re: [Pharo-users] RDBMS Atomic Counter?

2014-04-17 Thread itli...@schrievkrom.de
I think this is simply a case of optimistic locking - there is a general way and very often db specific ways first you get the current active value ... (one row) currentValue from "select counterfield from tablename" then you update the table (single row) update tablename set counterfield

Re: [Pharo-users] how to duplicate document with Voyage

2014-04-17 Thread olivier auverlot
simply ? Thanks ;-) 2014-04-17 10:42 GMT+02:00 Esteban Lorenzano : > > On 17 Apr 2014, at 10:17, Norbert Hartl wrote: > > > > > Am 17.04.2014 um 10:08 schrieb Olivier Auverlot < > olivier.auver...@gmail.com>: > > > >> Hi, > >> > >> I'm using Voyage and I need to duplicate an existing document i

Re: [Pharo-users] how to duplicate document with Voyage

2014-04-17 Thread Esteban Lorenzano
On 17 Apr 2014, at 10:17, Norbert Hartl wrote: > > Am 17.04.2014 um 10:08 schrieb Olivier Auverlot : > >> Hi, >> >> I'm using Voyage and I need to duplicate an existing document in a Mongo >> database. I suppose that the id must be changed before saving. >> >> What is the best way to do tha

Re: [Pharo-users] how to duplicate document with Voyage

2014-04-17 Thread Norbert Hartl
Am 17.04.2014 um 10:08 schrieb Olivier Auverlot : > Hi, > > I'm using Voyage and I need to duplicate an existing document in a Mongo > database. I suppose that the id must be changed before saving. > > What is the best way to do that ? > If you need a shallow copy then you better just copy th

[Pharo-users] how to duplicate document with Voyage

2014-04-17 Thread Olivier Auverlot
Hi, I'm using Voyage and I need to duplicate an existing document in a Mongo database. I suppose that the id must be changed before saving. What is the best way to do that ? Best regards Olivier ;-)