[CPS-devel] Custom Directory

damien.metzler at ext.leroymerlin.fr damien.metzler at ext.leroymerlin.fr
Wed Apr 19 11:38:13 CEST 2006


Hi,
 
I've just set up a LDAP directory with CPSLDAPSetup (great work).  My
problem is that my company wants me to use a web service to fetch user
information and authenticate. So I must make my own
WebServiceBackingDirectory which is quite the same as the CPSLDAPDirectory.
My problem is that i found tutorials on how to add content products, simple
products but i didn't find how to add custom directory.
 
Here is the init.py that I did by copying the one found in CPSDirectory....
 
=======================================================
"""IUADirectory init.
   This directory connect to the IUA Web Service
"""
import sys

import_errors = [] # Hold the tracebacks for failed imports.
 
from Products.CPSDirectory.DirectoryTool import DirectoryTypeRegistry
from IUABackingDirectory import IUABackingDirectory
 

def initialize(registrar):
    DirectoryTypeRegistry.register(IUABackingDirectory)

=======================================================
 
Despite of this, my directory is no useable in portal_directories.
 
Thx for any help
 
Damien METZLER


This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nuxeo.com/pipermail/cps-devel/attachments/20060419/8662adb2/attachment.html


More information about the cps-devel mailing list
More information about CPS: CPS project - CVS - API

Hosting: Nuxeo: Zope service provider


This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.