[Zope3-dev] Re: LDAP Authentication source

Nicolas Évrard nicoe at altern.org
Tue Jun 29 17:14:38 EDT 2004


* Martijn Faassen  [13:07 29/06/04 CEST]: 

Sorry for the delay

>>>So where should I upload it finally ?
>>  
>>Well, it depends upon the license you want to have. I personally would 
>>prefer ZPL 2.1, but others like GPL. If you make the package ZPL, then you 
>>can upload it to svn.zope.org, given that you have checkin privileges, 
>>which you can easily get.
>
>You need to agree to the Zope contributor's agreement and fax it to Zope 
>corporation. Information on that can be found here:
>
>http://dev.zope.org/Subversion/FrontPage
>
>in particular:
>
>http://dev.zope.org/Subversion/ContributorIntroduction
>http://dev.zope.org/Subversion/ContributorFAQ
>http://dev.zope.org/DevHome/Subversion/Contributor.pdf
>
>If you then talk to Jim Fulton you should be in business fairly fast.
>
>>For GPL, I think codespeak would be suitable.
>
>The Zope 3 base on codespeak also supports ZPL; in fact I think most in 
>there is ZPL code. The Zope 3 base does not require the contributor's 
>agreement; just talk to Philipp von Weitershausen, for instance on 
>#z3-base on freenode irc.

Well, I don't care if the code is on codespeak or in zope3's svn. I'll
do what you think is better for zope3. I've talked to my boss, he
doesn't care either, but I've promised him to give half of my credit to
aragne. I suppose I must add a notice on the top of each files.

My major problem now is that it does not seem to play well with
simpleprincipal. I think Stephan's recipe was writen before some changed
were made to pluggable auth.

In fact I see this code that according to my understanding put a too
strong dependecy of SimplePrincipal towards BtreePrincipalSource:

    class SimplePrincipal(Persistent, Contained):

        implements(IUserSchemafied, IBTreePrincipalSourceContained)

So I think that SimplePrincipal should be renamed BTreePrincipal.

Or the second implemented class could be IPrincipalSourceContained, but
then every PrincipalSource should implement IContainer (its seems
logical that something that is implementing IContained must be "into" a
class implementing IContainer but I might be wrong).

-- 
(°>  Nicolas Évrard
/ )  Liège - Belgique
^^   


More information about the Zope3-dev mailing list