Hello World!2006-08-03 at 03:07 | Posted in lang:en, tmp | 1 Comment
There’s a lot of work performed by descendants of a
Processor class in Apache Cocoon. This is some important stuff from it’s interface:
class Processor(Component): def buildPipeline(self, environment): pass def getRootProcessor(self): pass def process(self, environment): pass class TreeProcessor(Processor): def __init__(self): self.context = None self.fileName = None self.lastModified = None # ... class Cocoon(Processor): """Main kernel of the entire Cocoon system.""" # ...
This source code isn’t taken directly from Cocoon, of course. This is my draft of its interfaces in Python.