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.


1 Comment »

RSS feed for comments on this post. TrackBack URI

  1. Это пример комментария.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Create a free website or blog at WordPress.com.
Entries and comments feeds.

%d bloggers like this: