MOB - objects' tree

Posted on 2006-08-02 14:42:42 EEST.

Just few days ago I wrote that I am going to write midgard-gtk object browser , even if I am to write it in a year. Today I have registered class list and objects' tree browser. Limited to root objects only, but I it will change within day or two.

A lesson from this part of MOB is that midgard misses some core functionality ( mostly object's method ) which is able to return only root objects if object's class is registered as "content tree" one.

So to build object's tree we should have such three methods ( two of them are already implemented ):

  • list_roots
  • list
  • list_childs


An interesting ( built in ) feature for tree widget is search functionality. If the tree has too many entries and you would like to find particular one by name , it's enough if you start typing. Exactly the same as you used to do using Firefox or Nautilus.


At this point I found one issue. Double clicking on midgard_snippet just hangs application. Or at least it looks like as I had no time to wait till it makes anything. Of course I selected all snippets. In such case it may be more than 5 thousands records.


Another interesting lesson from MOB writing is the fact that core misses config file functionality which should return only the names of configuration files or even better all the names of all configurations. Such approach would encapsulate real file names and could provide more readable configurations and their "destinations" , like :

  • midgard ( my.remote.host )
  • midgard ( localhost )
  • midgard ( my.another.host )

To be continued soon...

Back

Layout Copyright © 2006 Finnish Teleservice Center Ltd Oy - Site Powered by Midgard CMS