Clotho / Clotho-Core

www.clothocad.org
Other
4 stars 1 forks source link

run refactor: response of scriptengine to a name #2

Open jcaucb opened 10 years ago

jcaucb commented 10 years ago

If you say:

var oli = {}; oli.name = "ca998" oli.schema = "org.clothocad.model.Oligo"

then type oli, you get:

org.clothocad.model.Oligo

I think it should println the JSON (a clotho.get) or invoke an editor (a clotho.edit). It should behave the same as if you referenced a sharable by it's name, which currently means to println it. Also, not all javascript objects would have schemas and thus you could not construct the sharable editor. They should be the same to avoid complexity, so it should be JSON.

Pasting in the UUID of a sharable also currently dumps JSON.

Ideally it would also pretty-print the json instead of a flow. It is hard to read.