view piecrust/data/linker.py @ 171:d5991525801d

sources: Add an `IListableSource` interface for sources that can be listed. Page sources that implement this interface can be "iterated through", like a hierarchy, which is useful for the upcoming `Linker` feature.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 03 Jan 2015 20:51:34 -0800
parents f485ba500df3
children 4fc1d306046b
line wrap: on
line source



class Linker(object):
    def __init__(self, page):
        self.page = page