New ASCII Art Tree Subsystem

Registered by Eike on 2010-05-22

The conversion of object trees to ASCII-art strings must be generalized.

Currently only ast.Node subclasses can be converted. The general algorithm and interface should allow any Python object to be converted.

This is necessary for the new object architecture.

Blueprint information

Status:
Complete
Approver:
None
Priority:
Medium
Drafter:
None
Direction:
Approved
Assignee:
Eike
Definition:
Approved
Series goal:
Accepted for trunk
Implementation:
Implemented
Milestone target:
milestone icon 0.4.0
Started by
Eike on 2010-05-24
Completed by
Eike on 2010-05-25

Related branches

Sprints

Whiteboard

Possible interface:

- method: aa_tree(self, depth, left_margin_string, memo_set) ??? __siml_aa_tree__
    - If present this function is called to create the tree
    - memo_set: store IDs of objects that have already been converted, to avoid infinite recursion.

- data member: __siml_aa_tree_maker__
    - Can be present in class or instance
    - Contains configuration data
        - top_names: [str]
        - id_names: [str]
        - short_names: [str]
        - long_names: [str]
        - bottom_names: [str]
        - short_types: [type]
        - long_types: [type]
        - tree_maker_name: str
        - left_margin_string: str
    - method: make_tree(self, tree_obj, depth, memo_set, left_margin_string, )

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.