Problems with META Directory

Miguel Sánchez Beato <miguel.sanchez-PttKq6FmaWE8QMA/Cy+x5VaTQe2KTcn/@public.gmane.org>
Newsgroups gmane.comp.web.zope.cps.devel
Message-ID <1172755010.14689.25.camel@localhost>
Hello! I'm dealing with META directory for the users of my portal
(customized CPS 3.4.2) that takes the fields from two backing
directories:

* SQL directory schema (Moodle - mySQL DB):
    - username (identification field)
    - password  
    - firstname
    - lastname
    - email
    - address
    - city

* ZODB directory schema (fields of the "old" CPS schema 'members'):
    - confirm
    - email
    - fullname
    - givenNme
    - groups
    - homeless
    - id (identification field)
    - password
    - roles
    - sn
    - login_time (custom)
    - access_from (custom)
    - access_to (custom)
    - last_login_time (custom)
    - join_time (custom)
    - sn2 (custom)

My META directory is called 'members' to use it as the default directory
for every users in the portal, so the META has this schema:
- confirm
    - email
    - fullname
    - givenNme
    - groups
    - homeless
    - id (identification field)
    - password
    - roles
    - sn
    - login_time (custom)
    - access_from (custom)
    - access_to (custom)
    - last_login_time (custom)
    - join_time (custom)    
    - sn2 (custom)
    - address (SQL dir)
    - city (SQL dir)
    - id_sql (SQL dir id compatibility, refers to 'id' field when
writing)
    - id_zodb (ZODB dir id compatibility, refers to 'id' field when
writing)


In the Backings feature of the META directory:

* SQL backing
    - Fields renaming : In sql_dir      In members (meta)
                        username        id_sql  
                        firstname       givenName
                        lastname        sn
    - Ignore fields : 
    - Expresion for entry fields :

* ZODB backing
    - Fields renaming : In sql_dir      In members (meta)
                        id              id_zodb  
                        
    - Ignore fields : email givenName sn password fullname (I want to
use these fields from the SQL dir)
    - Expresion for entry fields : python:{'id' : '', 'roles' :
['Member'], 'groups' : [], 'homeless' : 0, 'sn2' : '', 'login_time' :
'2000/01/01' , 'last_login_time' : None , 'join_time' : None,
'access_from' : None, 'access_to' : None, 'confirm':''} (compatibility
with schema's fields default values)

Ok, once this has been done, the portal can read the fields from Moodle,
and it composes the entry with the zodb fields (OK). I can search, edit,
create and delete entries from the portal (META) and its associated
entries (SQL, ZODB). 

Everything seems to work fine until  I want to LOG IN the portal with
one of the users from Moodle, the Authentication fails, and looing at
the logs it looks like a KeyError exception.


Anybody can help me with this? 
Is it a bad configuration of the directories (META, backings,
schemas...)?
Anything?

Thanks a lot!
    
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.