More beauty for Midgard
Posted on 2007-11-19 15:01:28 EET.
It was spring when I wrote about python bindings for Midgard. While then, it was very initial work, today, I must say we have something really working, just after few days of work.
So as of today, you can do:
midgard_config
- read midgard unified configuration
- list all possible midgard configurations
- write configuration
midgard_connection
- open connection by its name
- open connection using specified configuration
- set application's sitegroup context
- set application's language context
MgdSchema objects are also implemented so those are automagically registered as python classes when module is imported.
- Added methods
- get_by_id
- get_by_guid
- create
- update
- delete
- purge
- is_in_parent_tree
- is_in_tree
- get_parent
- parent
- list
- list_children
- get_languages
- get_by_path
You can find test code in midgard-python directory. Of course, python bindings require midgard2 library.