Re: [Pharo-users] GitFileTree in Pharo 5

2017-02-01 Thread Pierce Ng
On Thu, Feb 02, 2017 at 03:13:41PM +0800, Pierce Ng wrote: > On Tue, Jan 31, 2017 at 03:42:10PM +0100, Cyril Ferlicot D. wrote: > > To load gitFileTree I use this script: > > ``` > > Metacello new > > baseline: 'FileTree'; > > repository: 'github://dalehenrich/filetree:pharo' , SystemVersion >

Re: [Pharo-users] GitFileTree in Pharo 5

2017-02-01 Thread Pierce Ng
On Tue, Jan 31, 2017 at 03:42:10PM +0100, Cyril Ferlicot D. wrote: > To load gitFileTree I use this script: > ``` > Metacello new > baseline: 'FileTree'; > repository: 'github://dalehenrich/filetree:pharo' , SystemVersion > current dottedMajorMinor , '_dev/repository'; > load: 'Git' > ``` > W

Re: [Pharo-users] [Voyage] Accessing ObjectID(_id) when retrieving objects.

2017-02-01 Thread sergio ruiz
Yes.. smalltalk doesn’t impose a whole lot of style limitations on the developer, and most of the code i run into is very high quality.. so, using all the available code, you’re really just learning good practices from a bunch of smart people… the language is really inconsequential.. On Februa

Re: [Pharo-users] [Voyage] Accessing ObjectID(_id) when retrieving objects.

2017-02-01 Thread Norbert Hartl
> Am 01.02.2017 um 17:02 schrieb sergio ruiz : > > Got it.. > > Smalltalk is one language where it ALWAYS seems that there is a more clever > way to do anything than the way i am doing it.. > > I’ll try this.. > Don't worry. That is the experience we all had (and have). You look for a metho

Re: [Pharo-users] [Voyage] Accessing ObjectID(_id) when retrieving objects.

2017-02-01 Thread sergio ruiz
Got it.. Smalltalk is one language where it ALWAYS seems that there is a more clever way to do anything than the way i am doing it.. I’ll try this.. Thanks! On February 1, 2017 at 10:43:36 AM, Norbert Hartl (norb...@hartl.name) wrote: MyClass selectOne: { '_id' -> (OID value: 16r) } asDictio

Re: [Pharo-users] [Voyage] Accessing ObjectID(_id) when retrieving objects.

2017-02-01 Thread Norbert Hartl
> Am 01.02.2017 um 16:11 schrieb sergio ruiz : > > hmmm.. can you query for an object with that voyageId? Sure. I don't know if there is a more clever way to do but this will work in any case MyClass selectOne: { '_id' -> (OID value: 16r) } asDictionary Norbert > > On February 1, 20

Re: [Pharo-users] [Voyage] Accessing ObjectID(_id) when retrieving objects.

2017-02-01 Thread sergio ruiz
hmmm.. can you query for an object with that voyageId? On February 1, 2017 at 9:37:43 AM, Norbert Hartl (norb...@hartl.name) wrote: You can ask every voyage object for its id. Just do  anObject voyageId you get an OID object which you can ask for its #value to get the numeric id. Norbert

Re: [Pharo-users] [Voyage] Accessing ObjectID(_id) when retrieving objects.

2017-02-01 Thread sergio ruiz
Perfect! this is what i needed.. i don’t want to manage two sets of IDs.. Thanks! On February 1, 2017 at 9:37:43 AM, Norbert Hartl (norb...@hartl.name) wrote: You can ask every voyage object for its id. Just do  anObject voyageId you get an OID object which you can ask for its #value to get th

Re: [Pharo-users] Phobos and printing

2017-02-01 Thread kmo
Great news! Ken Pavel Krivanek-3 wrote > So I tried to run Phobos on Pharo 6 and it is able to run fine with the > old > Json package. It only needed two simple patches. To convert Phobos to > NeoJSON will require some extra effort. In next days I will put the code > on > the Git repository. >

Re: [Pharo-users] [Voyage] Accessing ObjectID(_id) when retrieving objects.

2017-02-01 Thread Norbert Hartl
> Am 01.02.2017 um 15:25 schrieb sergio ruiz : > > Hi, all.. > > I am working on a Teapot REST interface, and am getting ready to implement > the create, read, and update methods for the objects, and I need a way to > refer to the objects. I figured that since Voyage was already creating _id

[Pharo-users] [Voyage] Accessing ObjectID(_id) when retrieving objects.

2017-02-01 Thread sergio ruiz
Hi, all.. I am working on a Teapot REST interface, and am getting ready to implement the create, read, and update methods for the objects, and I need a way to refer to the objects. I figured that since Voyage was already creating _id through MongoDB, I could just pass that on when I retrieved t

Re: [Pharo-users] How to view hierarchy of multiple classes in a package?

2017-02-01 Thread Denis Kudriashov
2017-02-01 14:56 GMT+01:00 Tim Mackinnon : > As an extra data point - dolphin and visual age both work this way (maybe > even visual works?) and I never saw it as a problem - which is why I was > surprised that Pharo is different - however I know you guys often think > differently. There was scr

Re: [Pharo-users] How to view hierarchy of multiple classes in a package?

2017-02-01 Thread Denis Kudriashov
2017-02-01 14:56 GMT+01:00 Tim Mackinnon : > Hi Denis - as an argument in favour, you would only see this view when you > select the Hierarchy button (so its not the default) - and by pressing > hierarchy, I would argue that you want to see a hierarchy of all the > classes (like you see all the cl

Re: [Pharo-users] How to view hierarchy of multiple classes in a package?

2017-02-01 Thread Tim Mackinnon
Hi Denis - as an argument in favour, you would only see this view when you select the Hierarchy button (so its not the default) - and by pressing hierarchy, I would argue that you want to see a hierarchy of all the classes (like you see all the classes in non-hierchy mode) - if there is lots of

Re: [Pharo-users] [NeoJSON] creating custom maps

2017-02-01 Thread sergio ruiz
Looking at this now.. thanks! On January 30, 2017 at 4:41:59 PM, Sven Van Caekenberghe (s...@stfx.eu) wrote: The default is not to write out nil/null properties. If you want to change this, make a writer and set #writeNil: to false. For an example, see #testPointWriteNil  peace, sergio p

Re: [Pharo-users] How to view hierarchy of multiple classes in a package?

2017-02-01 Thread Denis Kudriashov
2017-01-05 12:11 GMT+01:00 Tim Mackinnon : > I finally got a chance to try this change out - and this a super helpful > change - thanks so much. (It also taught me where some of the things live > in Pharo). > > Why wouldn’t this change be made permanent in the live Pharo? I can’t see > any downsid