On Sunday 08 December 2002 10:27 am, Stephan Richter wrote:
On Sunday 08 December 2002 10:08, Eron Lloyd wrote:
Twisted (http://www.twistedmatrix.com) is where you would want to be for something like this. At some point in Zope 3, Twisted and Zope may become more aware of eachother, so my suggestion is to help develop a Twisted-based LDAP server, which could then easily communicate with Zope.
Well, actually Twisted works already for a long time with Zope 3. Itamar worked hard on getting this done.
Excellent. Three cheers to Itamar and others that led this effort!
However, there are several issues with a Twisted-based LDAP approach:
1. The current Twisted LDAP code does not have the right license. Anyway, I prefer having something in the Zope core with the ZPL.
When you say "something in the Zope core", do you mean LDAP *client* or *server* code? I hope you mean client, as most users wouldn't need to have a full server available in the distribution. As an add-on, however, would be very cool. I'll have to look into the licensing issues. From conversations in #twisted, it looks like the ldaptor code will be going through some changes (don't quote me on that one, though).
2. I still have to write all the Request and Publisher code, which is also a lot of work, especially for something like LDAP. (I thought the VFSPublisher code was a lot, but this is about 5 times (wild guess) bigger.)
Do you mean when communicating to an LDAP server? If this is the case it may make more sense to expose a Twisted Perspective Broker interface for data exchange. I could be wrong, since I'm not too familiar with VFSPublisher, yet.
On the other hand, Shane and I took a lot of time to modularize the server framework for Zope 3 when porting Medusa to the new framework, which could mean that the Twisted module would do just fine. But then Steve and I agree we do not want our LDAP server depend on Twisted. :-)
Here is one of my main concerns. Twisted already provides a relatively stable generic client *and* server framework. Remember, Twisted is not just a Web server. Twisted is a network application framework as Zope is a Web application framework. To push Zope more into becoming a generalized server platform on its own seems unneccessary (though I certainly praise your efforts!). Also, the required dependancy of Twisted (which is only a small fraction of the actual Twisted codebase--the framework code), which will provide many productivity and extensibility gains *greatly* outweighs the alternative (doing it from scratch).
I will have to investigate that further when I have time. But I still would love it, if some others would step up and write a **basic** LDAP server. I can help them to integrate it into Zope later.
Awesome. I know it's probably finals time (it is for me, too). The next major release of Twisted will see more work on the servers (this includes email, news, messaging, LDAP, Web, and more). Twisted is becoming more mature all the time, so keep it in mind. We'll probably be much closer to your needs by that point.
Regards, Stephan
Cheers, Eron