[CPS-users] add metadata for an object

JoseLuis de la Rosa Triviño joseluis.rosa at iavantefundacion.com
Mon Nov 20 16:48:32 CET 2006


Please make sure you did the step 3, that should work. Could you attach the XML of the modified layout? The XML is retrieved from the "Export" tab.

On the other side, I suppose you want to get the value of the field from a RDBMS. In that case:

1. Add the database adapter you need (MySQL, PostgreSQL, etc) and configure it.
2. In the new field you added to the schema. Check "Read: ignore storage" and in the "Read: expression" write the expression to access to the database using the database adapter. Take a look at CPSDirectory/FieldNamespace.py for an example of how a function can be called from a Write/Read expression.

Regards.

JoseLuis de la Rosa Triviño 
Técnico de Desarrollo Software 
FUNDACIÓN IAVANTE 
joseluis.rosa at iavantefundacion.com 
Tel. 951 015 300 

Este correo electrónico y, en su caso, cualquier fichero anexo, contiene información confidencial exclusivamente dirigida a su(s) destinatario(s). Toda copia o divulgación deberá ser autorizada por IAVANTE.
This e-mail and any attachments are confidential and exclusively directed to its adressee(s). Any copy or distribution will have to be authorized by IAVANTE.


-----Mensaje original-----
De: Graziella Toutoungis [mailto:graztoutoungis at yahoo.fr] 
Enviado el: viernes, 17 de noviembre de 2006 15:24
Para: JoseLuis de la Rosa Triviño; cps-users at lists.nuxeo.com
Asunto: RE : RE: [CPS-users] add metadata for an object

Thank you for this information,
I try it but until now i can't see the modifications
when i create a new file or a new doc (my new metadata
isn't in the list of the metadata).

-another question how i can reference this metadata to
a column in mydatabase? where i should write my code
(the connection to a database...).

Thanks.
  G.
--- JoseLuis de la Rosa Triviño
<joseluis.rosa at iavantefundacion.com> a écrit :

> 
> The next steps are supposed to be done from the ZMI:
> 
> 1. Add new fields to the schema "metadata" (in the
> tool portal_schemas)
> 2. Add new widgets to the layout "metadata" (in the
> tool portal_layouts)
> 3. Modify the layout to show that widgets (in the
> tab "Layout" of the metadata layout). 
> 
> I hope this helps. If you need to know more, don't
> hesitate to ask ;-)
> 
> JoseLuis de la Rosa Triviño 
> Técnico de Desarrollo Software 
> FUNDACIÓN IAVANTE 
> joseluis.rosa at iavantefundacion.com 
> Tel. 951 015 300 
> 
> Este correo electrónico y, en su caso, cualquier
> fichero anexo, contiene información confidencial
> exclusivamente dirigida a su(s) destinatario(s).
> Toda copia o divulgación deberá ser autorizada por
> IAVANTE.
> This e-mail and any attachments are confidential and
> exclusively directed to its adressee(s). Any copy or
> distribution will have to be authorized by IAVANTE.
> 
> 
> -----Mensaje original-----
> De: Graziella Toutoungis
> [mailto:graztoutoungis at yahoo.fr] 
> Enviado el: viernes, 17 de noviembre de 2006 10:54
> Para: cps-users at lists.nuxeo.com
> Asunto: [CPS-users] add metadata for an object
> 
> Hello,
> 
> I want to add an other metadata for all the CPS's
> object   (like the document or a file or a Workspace
> or Forum...)
> 
> the idea is all this object must have a metadata(or
> attributes X,Y referenced in a database).
> 
> any body have an idea? i apreciate any help.
> 
> Thanks
> G.
>  
> 
> 
> 	
> 
> 	
> 		
>
___________________________________________________________________________
> 
> Découvrez une nouvelle façon d'obtenir des réponses
> à toutes vos questions ! 
> Profitez des connaissances, des opinions et des
> expériences des internautes sur Yahoo!
> Questions/Réponses 
> http://fr.answers.yahoo.com
> _______________________________________________
> cps-users mailing list
> cps-users at lists.nuxeo.com
> http://lists.nuxeo.com/mailman/listinfo/cps-users
> 



	

	
		
___________________________________________________________________________ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses 
http://fr.answers.yahoo.com



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