Using Pycoon without weblayer

4 views
Skip to first unread message

michaelz

unread,
Feb 19, 2008, 5:46:27 AM2/19/08
to pycoon-users
Hallo,

at first I would like to say "hello" to this mailing list ;-)
I want to know how to use Pycoon without the weblayer. This means that
I only want to use the Pycoon's pipelines to be integrated directly
within other code by parametrising the treeprocessor. So far as I had
a look at the code it seems to achieve this I would have to create the
request-object and the environment-object according to the same
actions that would occur by the use of the weblayer (WSGI). Is there
another way?
As I have seen in the roadmap for milestone 0.2 the developers want to
provide "Pycoon user-cases (not only Web)". I assume that my question
covers that todo and I would be glad when someone could post a little
examples.

Also involved with this it would be interesting to set a sitemap
without the use of using XML. Additionally to that it would be
interesting to create generator-instances without the need to store a
XML-file physically into a dir to be read by the generator. Also here
I would like to eliminate the file-I/O overhead additionally to the
network-overhead.

Further more am I right assuming that with finishing the milestone 0.3
the dependency on the weblayer is getting higher and the abilities to
use Pycoon without the weblayer would become more hard to manage?
Thank you.

michael

Andrey Nordin

unread,
Feb 21, 2008, 11:46:48 PM2/21/08
to pycoon...@googlegroups.com
Hi Michael,

I should inform you that the project has been suspended for a while. I'm
sorry about that, but I just don't have free time for it, as well as my
co-developer. Nevertheless our project is open to new contributions by
other people.

> I want to know how to use Pycoon without the weblayer. This means that
> I only want to use the Pycoon's pipelines to be integrated directly
> within other code by parametrising the treeprocessor. So far as I had
> a look at the code it seems to achieve this I would have to create the
> request-object and the environment-object according to the same
> actions that would occur by the use of the weblayer (WSGI). Is there
> another way?

> Also involved with this it would be interesting to set a sitemap


> without the use of using XML. Additionally to that it would be
> interesting to create generator-instances without the need to store a
> XML-file physically into a dir to be read by the generator. Also here
> I would like to eliminate the file-I/O overhead additionally to the
> network-overhead.

Personally, I found it interesting to have Pycoon working based on
purely Python config without any XML. It was one of my latest directions
of development before I had suspended my activity. You are basically
right about a way to do it. One has to create WSGI-like environment and
pass it to pre-configured `TreeProcessor`. One can get rid of XML by
creating his own `TreeBuilder`. But I guess without XML and the
architecture Apache Cocoon in mind one could implement this stuff in a
much easer, not so object-oriented way.

--
Best regards,
Andrey Nordin

Web Identity: <http://claimid.com/anrienord>
IM: <xmpp:anri...@jabber.org>

Reply all
Reply to author
Forward
0 new messages