Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Improving the printout of the odML objects #67

@lzehl

Description

@lzehl

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions