[CPS-devel] CPSDirectories and Schemas

sebmas sebastien.masson at ac-strasbourg.fr
Fri Mar 30 15:25:38 CEST 2007


Hi,

I've some problems with schemas and CPSDirectories.

I've made of FieldNamespace extension of mine, which is capable of 
retrieving the groups a user belongs to (about the same as 
"dirCrossGetList"), and another one for the dynamic groups.

Both of them are working correctly, so I added two fields in the schema 
: dynamicGroups and staticGroups.
What for ? In order to have "cpsGroups = dynamicGroups + staticGroups"

But here come the troubles : I can't concatenate these fields, because 
one of them is always considered as "defaut value for field". But I can 
see the correct value when performing a search on the ZMI management 
screen !
And using a test field with "python:data" shows the correct keys and 
values too.

Namespace problem or something ?

I removed "cpsGoups" and tried other field names, always with the 
concatenation (read/write ignore storage, adding dependend expression 
fields or not doesn't change anything):

 "a","b","c" ..."w": error message, because of str and list concatenation
"x","y","z" : works correctly !
"erreotuieiotubzzerzioozbvz 
<http://web5.ac-strasbourg.fr:8080/cps/portal_schemas/members_computed_fields/f__erreotuieiotubzzerzioozbvz/manage_workspace>" 
(yes, I'm getting a bit angry) : no error message, but an empty value 
(default value for field I guess)

And I tried simpler cases :

field : a / value="python:['a','b','c']"
field : w / value="python:a"
result:w=empty

inverting "w" and "a" returns the same result.

But :
field : a value="python:['a','b','c']"
field : v value="python:a"
result:v="['a','b','c']"

I really don't unterstand anything !

Is there something special about fields names ?

Regards





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