[EMAIL PROTECTED] a écrit :
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....

Please note that this is __init__.py and not init.py. Furthermore, you will need to add a configure.zcml files with directives to initialize the "add" views for you directories and plug an adequate XMLAdapter if you want to add GenericSetup support for you new directory class.

Please also note that you should implement ZCacheable as well (as LDAPBAckingDirectory and ZODBDirectory do) in order to maintain acceptable performance using a RAMCacheManager instance such as portal_directories/dir_ramcache which is created in the default profile.

--
Olivier

_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel

Reply via email to