morepath.toposort – Topological sorting

Topological sort functionality.

class morepath.toposort.Info(key, before, after)

Toposorted info helper.

Base class that helps with toposorted. before and after can be lists of keys, or a single key, or None.


Sort infos topologically.

Info object must have a key attribute, and before and after attributes that returns a list of keys. You can use Info.