Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/a/r/archetypes.ldapstorage-0.1a1/archetypes/ldapstorage/examples/ExampleContent2.py   archetypes.ldapstorage(Download)
 
from Products.Archetypes import public as atapi
from archetypes.ldapstorage import LDAPStorage
from archetypes.ldapstorage import config
 
def get_storage(field_id):
    return LDAPStorage(
        'cn',
        'name',
        attr_mapping[field_id],

src/a/r/archetypes.ldapstorage-0.1a1/archetypes/ldapstorage/examples/ExampleContent.py   archetypes.ldapstorage(Download)
 
from Products.Archetypes import public as atapi
from archetypes.ldapstorage import LDAPStorage
from archetypes.ldapstorage import config
 
def get_storage(field_id):
    return LDAPStorage(
        'uid',
        'getId',
        attr_mapping[field_id],