is there any way create server for new protocol without changing ZServer module?
Nikolay Kim wrote:
is there any way create server for new protocol without changing ZServer module?
Nope, have you looked at Twisted? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
Nikolay Kim wrote at 2004-2-26 17:50 +0600:
is there any way create server for new protocol without changing ZServer module?
You must implement the server for the new protocol and you will need some integration code. You have lots of examples at hand. -- Dieter
You must implement the server for the new protocol and you will need some integration code.
You have lots of examples at hand.
write server itself not very hard, i simply don't want patch ZServer/components.xml is there any way don't touch Zserver?
On Thursday 26 February 2004 06:50 am, Nikolay Kim wrote:
is there any way create server for new protocol without changing ZServer module?
There's clearly a need for some more documentation here, but I'm not sure what to write yet, or where it should go. Contrary to many of the other responses, yes, this shouldn't be difficult at all. You'll need a couple of pieces of Python code: 1. Your server implementation. It sounds like you have this already. 2. A factory object that can accept configuration data and create an instance of your server object. You then need to create a ZConfig component that provides a section type to support your server. The ZConfig documentation discusses this somewhat. The new section type will need to declare that it implements the ZServer.server abstract type; it should probably look something like this: <component> <import package="ZServer"/> <sectiontype name="myserver" implements="ZServer.server" datatype="mypackage.server.ServerFactory"> <!-- configuration data should be described here --> </sectiontype> </component> You'll need to arrange for the package containing this component is available on the Python sys.path before zope.conf is loaded; this is mostly easily done by manipulating the PYTHONPATH environment variable. Your zope.conf file can now include the following to load and use your new server: %import mypackage <myserver> # configuration settings go here </myserver> Feel free to ask questions about this; I'm usually more available to respond than I have been a couple of days. -Fred -- Fred L. Drake, Jr. <fred at zope.com> PythonLabs at Zope Corporation
Thanks Fred! all works well. P.S. i'm developing smtp server for zope and already have working code.
On Sunday 29 February 2004 11:21 pm, Nikolay Kim wrote:
P.S. i'm developing smtp server for zope and already have working code.
Ooh! This is really cool. Will this be open source? I'll be a lot of people will be interested in this. -Fred -- Fred L. Drake, Jr. <fred at zope.com> PythonLabs at Zope Corporation
On Mon, 1 Mar 2004 10:09:36 -0500 Fred Drake <fred@zope.com> wrote:
On Sunday 29 February 2004 11:21 pm, Nikolay Kim wrote:
P.S. i'm developing smtp server for zope and already have working code.
Ooh! This is really cool. Will this be open source? I'll be a lot of people will be interested in this.
Me too, me too! ;^) -Casey
it'll be open source. source in attach. it not very usefull without additional products that must actually handle emails. now i'm working on mail storage products.
Ooh! This is really cool. Will this be open source? I'll be a lot of people will be interested in this.
-Fred
-- Fred L. Drake, Jr. <fred at zope.com> PythonLabs at Zope Corporation
Nikolay Kim wrote:
it'll be open source.
source in attach.
it not very usefull without additional products that must actually handle emails.
now i'm working on mail storage products.
very cool product Nikolay. re mail storage: have you looked at ZMailIn? http://www.zope.org/Members/NIP/ZMailIn /dario -- -- ------------------------------------------------------------------- Dario Lopez-Kästen, IT Systems & Services Chalmers University of Tech.
very cool product Nikolay.
re mail storage: have you looked at ZMailIn?
http://www.zope.org/Members/NIP/ZMailIn no i don't see it.
but i have developed one. now i have upload speed 8 messages per second. i'll release smtpservice product next week.
participants (7)
-
Casey Duncan -
Chris Withers -
Dario Lopez-Kästen -
Dieter Maurer -
Fred Drake -
Jens Vagelpohl -
Nikolay Kim