-
Notifications
You must be signed in to change notification settings - Fork 30
Description
I think with the new updates of odML, an additional nice feature would be if the odML objects when printed provide more information of the underlying structure.
For example an odML.Document when printed gives currently the following information::
>>> print(doc)
>>> <Doc version author (number of directly attached sections)>
I think it would be useful if the odML.Document printout also indicates the depth (sections) of the tree structure and maybe the total number of properties? For example::
>>> <Doc version author (# sections, depth #, grouping # properties)>
Same goes for the odML.Section printout. Here, besides the numbers of directly attached subsections also the direct number of properties, as well as the possible depth of the branch of the tree structure would be helpful.
One could even provide an extended print function which could summarize the content of the object in more detail (as a second option comparable to the XML structure).
For example::
>>> print(doc, show_sec=True, show_prop=True)
>>>
Let me know what you think. Best Lyuba